File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 3838 issue-number : ${{ inputs.pr-number }}
3939 comment-author : ${{ inputs.pr-comment-author }}
4040 body-includes : ' <!-- ACCELERATOR TESTINFRA START -->'
41- direction : first
4241
4342 - name : Show comment info
4443 run : |
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ jobs:
119119 - prepare
120120 - build
121121 - test
122+ if : ${{ github.event_name == 'repository_dispatch' }}
122123 uses : ./.github/workflows/_ascend_npu_benchmark.yml
123124 with :
124125 runner : ${{ needs.prepare.outputs.runner }}
Original file line number Diff line number Diff line change 1- git+https://github.com/pytorch/benchmark.git
21tabulate
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
46
5- from typing import List
6- from torchbenchmark .util .experiment .instantiator import TorchBenchModelConfig
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
719
820
921@dataclasses .dataclass
You can’t perform that action at this time.
0 commit comments