Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/ci/L1_Tests_GPU.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
export CUDA_VISIBLE_DEVICES=0
export TORCH_ALLOW_TF32_CUBLAS_OVERRIDE=0

mkdir -p test-results/tests/convergence
error=0

fix_seed=77
for test in `find tests/convergence -type f -name '*_test.py'`; do
echo "Running $test with fixed seed"
python $test --device=cuda --seed=42 -v -2 || error=1
report_name="test-results/${test}_seed${fix_seed}.xml"
coverage run -p --source=emerging_optimizers $test --device=cuda --seed="$fix_seed" -v -2 --xml_output_file="$report_name" || error=1
done

exit "${error}"
Loading