File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 9393 with :
9494 repository : ${{ env.PYTORCH_REPO }}
9595 ref : ${{ env.PYTORCH_COMMIT_ID }}
96- submodules : recursive
96+ # To build PyTorch from source we need all submodules, they are not required for benchmarks
97+ submodules : ${{ inputs.mode == 'source' && 'recursive' || 'false' }}
9798 path : pytorch
9899
99100 - name : Apply additional PR patches
Original file line number Diff line number Diff line change 1414 default : " "
1515 pytorch_mode :
1616 description : PyTorch mode, source or wheels
17- type : string
18- default : " source"
17+ type : choice
18+ options :
19+ - source
20+ - wheels
21+ default : source
1922 upload_test_reports :
2023 description : Upload test reports
2124 type : boolean
5053 device : ${{ inputs.runner_label }}
5154 runner_label : ${{ inputs.runner_label }}
5255 pytorch_ref : ${{ inputs.pytorch_ref }}
53- pytorch_mode : ${{ inputs.pytorch_mode }}
56+ pytorch_mode : ${{ inputs.pytorch_mode || 'source' }}
5457 python_version : ${{ matrix.python }}
5558 upload_test_reports : ${{ inputs.upload_test_reports }}
5659 ignore_errors : ${{ inputs.ignore_errors }}
Original file line number Diff line number Diff line change 1414 default : " "
1515 pytorch_mode :
1616 description : PyTorch mode, source or wheels
17- type : string
18- default : " source"
17+ type : choice
18+ options :
19+ - source
20+ - wheels
21+ default : source
1922 upload_test_reports :
2023 description : Upload test reports
2124 type : boolean
@@ -124,7 +127,7 @@ jobs:
124127 driver_version : ${{ matrix.driver }}
125128 runner_label : ${{ inputs.runner_label }}
126129 pytorch_ref : ${{ inputs.pytorch_ref }}
127- pytorch_mode : ${{ inputs.pytorch_mode }}
130+ pytorch_mode : ${{ inputs.pytorch_mode || 'source' }}
128131 python_version : ${{ matrix.python }}
129132 upload_test_reports : ${{ inputs.upload_test_reports || false }}
130133 ignore_errors : ${{ inputs.ignore_errors || false }}
You can’t perform that action at this time.
0 commit comments