Skip to content

Commit

Permalink
fix ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
Attia Radwan committed Aug 26, 2022
1 parent c628f9d commit 05c3d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -261,7 +261,7 @@ commands:
echo "Using $(python -V) ($(which python))"
echo "Using $(pip -V) ($(which pip))"
python benchmarks/run_benchmarks.py --batch_size 16 --layers <<parameters.layers>> --config_file ./benchmarks/config.json --root ./benchmarks/results/raw/ --cont
IFS=$' ';layers=(<<parameters.layers>>); mkdir -p /tmp/report_layers; IFS=$'\n'; files=`( echo "${layers[*]}" ) | sed 's/.*/.\/benchmarks\/results\/raw\/&*/'`
IFS=$' ';layers=(<<parameters.layers>>); rm -rf /tmp/report_layers; mkdir -p /tmp/report_layers; IFS=$'\n'; files=`( echo "${layers[*]}" ) | sed 's/.*/.\/benchmarks\/results\/raw\/&*/'`
cp -v ${files[@]} /tmp/report_layers
report_id=`IFS=$'-'; echo "${layers[*]}"`
python benchmarks/generate_report.py --path-to-results /tmp/report_layers --save-path benchmarks/results/report-${report_id}.csv --format csv
Expand Down
1 change: 1 addition & 0 deletions benchmarks/benchmark_layer.py
Expand Up @@ -18,6 +18,7 @@

import torch
import torch.utils.benchmark as benchmark

from layers import LayerFactory, LayerType
from utils import get_layer_set, reset_peak_memory_stats

Expand Down

0 comments on commit 05c3d0b

Please sign in to comment.