Skip to content

Commit

Permalink
Migrate from Tuple -> tuple in benchmarks (#144259)
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/pytorch#144259
Approved by: https://github.com/yanboliang

Reviewed By: clee2000

Differential Revision: D67905636

Pulled By: bobrenjc93

fbshipit-source-id: adaec218cc88d0a5d63f0d41058076a3ea33c64b
  • Loading branch information
bobrenjc93 authored and facebook-github-bot committed Jan 7, 2025
1 parent 9028c93 commit 1e7ed46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions userbenchmark/dynamo/dynamobench/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
NamedTuple,
Optional,
Sequence,
Tuple,
Type,
TYPE_CHECKING,
)
Expand Down Expand Up @@ -746,7 +745,7 @@ def timed(
return (time_total, result) if return_result else time_total


def _normalize_bench_inputs(example_inputs) -> Tuple[Tuple[Any], Mapping[str, Any]]:
def _normalize_bench_inputs(example_inputs) -> tuple[tuple[Any], Mapping[str, Any]]:
# NOTE(bowbao): For huggingface benchmark, example_inputs are formatted as dictionary,
# and consumed like `model(**example_inputs)`.
# For other benchmarks, example_inputs are formatted as tuple and consumed
Expand Down

0 comments on commit 1e7ed46

Please sign in to comment.