Skip to content

Commit a9d299b

Browse files
authored
Update test-mlperf-inference-tvm-resnet50.yml
1 parent 8d11fc7 commit a9d299b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/test-mlperf-inference-tvm-resnet50.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,19 @@ jobs:
3434
mlcr --quiet --tags=get,sys-utils-cm
3535
- name: Test MLC Tutorial TVM
3636
run: |
37-
mlcr --tags=run-mlperf,inference,_submission,_short --adr.python.name=mlperf --adr.python.version_min=3.8 --submitter=Community --implementation=python --hw_name=default --model=resnet50 --backend=tvm-onnx --device=cpu --scenario=Offline --mode=accuracy --test_query_count=5 --clean --quiet ${{ matrix.extra-options }}
37+
mlcr --tags=run-mlperf,inference,_submission,_short --adr.python.name=mlperf --adr.python.version_min=3.8 --submitter=MLCommons --implementation=python --hw_name=gh_ubuntu-latest --model=resnet50 --backend=tvm-onnx --device=cpu --scenario=Offline --mode=accuracy --test_query_count=5 --clean --quiet ${{ matrix.extra-options }}
38+
- name: Randomly Execute Step
39+
id: random-check
40+
run: |
41+
RANDOM_NUMBER=$((RANDOM % 10))
42+
echo "Random number is $RANDOM_NUMBER"
43+
if [ "$RANDOM_NUMBER" -eq 0 ]; then
44+
echo "run_step=true" >> $GITHUB_ENV
45+
else
46+
echo "run_step=false" >> $GITHUB_ENV
47+
fi
3848
- name: Retrieve secrets from Keeper
49+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
3950
id: ksecrets
4051
uses: Keeper-Security/ksm-action@master
4152
with:
@@ -45,9 +56,12 @@ jobs:
4556
- name: Push Results
4657
env:
4758
GITHUB_TOKEN: ${{ env.PAT }}
59+
USER: mlcommons-bot
60+
EMAIL: mlcommons-bot@users.noreply.github.com
61+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
4862
run: |
49-
git config --global user.name "mlcommons-bot"
50-
git config --global user.email "mlcommons-bot@users.noreply.github.com"
63+
git config --global user.name "${{ env.USER }}"
64+
git config --global user.email "${{ env.EMAIL }}"
5165
git config --global credential.https://github.com.helper ""
5266
git config --global credential.https://github.com.helper "!gh auth git-credential"
5367
git config --global credential.https://gist.github.com.helper ""

0 commit comments

Comments
 (0)