Skip to content

Commit 337deac

Browse files
committed
update
1 parent d44a092 commit 337deac

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.github/workflows/_pytorch_pr_comment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
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: |

.github/workflows/ascend_npu_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 }}

requirements.txt

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

src/benchmark/utils.py

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

0 commit comments

Comments
 (0)