Skip to content

Commit 796112f

Browse files
committed
update
1 parent 2dd6e72 commit 796112f

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

.github/workflows/ascend_npu_test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ jobs:
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:

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
git+https://github.com/pytorch/benchmark.git
12
tabulate

src/benchmark/utils.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
import ast
22
import dataclasses
33
import 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

0 commit comments

Comments
 (0)