Skip to content

Commit

Permalink
args
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Oct 14, 2024
1 parent 4e32f77 commit 8e32a77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ on:
workflow_dispatch:
inputs:
pull_request_number:
description: 'The pull request number to run the workflow for'
description: 'The pull request number'
required: true
default: ''
pytest_args:
description: 'Pytest arguments'
default: ''
jobs:
examples-cpu:
runs-on: ubuntu-20.04-16-cores
Expand Down Expand Up @@ -40,6 +43,6 @@ jobs:
- name: Print installed modules
run: pip list
- name: Run examples test scope
run: python -m pytest -ra tests/cross_fw/examples -s
run: python -m pytest -ra tests/cross_fw/examples -s ${{ github.event.inputs.pytest_args || '' }}
env:
TQDM_DISABLE: 1
2 changes: 1 addition & 1 deletion tests/cross_fw/examples/example_scope.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"cpu": "Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz",
"accuracy_metrics": {
"fp32_mAP": 0.45211533555124545,
"int8_mAP": 0.45778860542769056,
"int8_mAP": 0.4599022156047055,
"accuracy_drop": -0.0056732698764451195
},
"performance_metrics": {
Expand Down
2 changes: 1 addition & 1 deletion tests/cross_fw/examples/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_examples(

env = os.environ.copy()
env["PYTHONPATH"] = str(PROJECT_ROOT) # need this to be able to import from tests.* in run_example.py
env["ONEDNN_MAX_CPU_ISA"] = "AVX2" # Set ISA to AVX2 to get CPU independent results
env["ONEDNN_MAX_CPU_ISA"] = "SSE41" # Set ISA to SSE41 to get CPU independent results
env["CUDA_VISIBLE_DEVICES"] = "" # Disable GPU

metrics_file_path = tmp_path / "metrics.json"
Expand Down

0 comments on commit 8e32a77

Please sign in to comment.