File tree Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 9595 name : Build torch_npu
9696 needs :
9797 - prepare
98- if : ${{ github.event_name == 'repository_dispatch' }}
9998 uses : ./.github/workflows/_ascend_npu_build.yml
10099 with :
101100 runner : ${{ needs.prepare.outputs.runner }}
@@ -106,7 +105,6 @@ jobs:
106105 needs :
107106 - prepare
108107 - build
109- if : ${{ github.event_name == 'repository_dispatch' }}
110108 uses : ./.github/workflows/_ascend_npu_ut.yml
111109 with :
112110 runner : ${{ needs.prepare.outputs.runner }}
@@ -120,7 +118,6 @@ jobs:
120118 - prepare
121119 - build
122120 - test
123- if : ${{ github.event_name == 'repository_dispatch' }}
124121 uses : ./.github/workflows/_ascend_npu_benchmark.yml
125122 with :
126123 runner : ${{ needs.prepare.outputs.runner }}
@@ -130,6 +127,7 @@ jobs:
130127 secrets :
131128 pr-token : ${{ secrets.COSDT_BOT_TOKEN }}
132129
130+ # TODO
133131 pr-comment :
134132 name : Comment report on upstream PRs
135133 needs :
Original file line number Diff line number Diff line change 1+ git+https://github.com/pytorch/benchmark.git
12tabulate
Original file line number Diff line number Diff line change 11import ast
22import dataclasses
33import json
4- import pathlib
5- from typing import Dict , List , Optional
64
7-
8- # Same as torchbenchmark.util.experiment.instantiator.TorchBenchModelConfig
9- # https://github.com/pytorch/benchmark/blob/main/torchbenchmark/util/experiment/instantiator.py#L26
10- @dataclasses .dataclass
11- class TorchBenchModelConfig :
12- name : str
13- test : str
14- device : str
15- batch_size : Optional [int ]
16- extra_args : List [str ]
17- extra_env : Optional [Dict [str , str ]] = None
18- output_dir : Optional [pathlib .Path ] = None
5+ from typing import List
6+ from torchbenchmark .util .experiment .instantiator import TorchBenchModelConfig
197
208
219@dataclasses .dataclass
You can’t perform that action at this time.
0 commit comments