mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE] Format .ci/
/ .github/
/ benchmarks/
/ functorch/
/ tools/
/ torchgen/
with ruff format
(#132577)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132577 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
04adb74d08
commit
267f82b860
@ -51,9 +51,7 @@ def main():
|
||||
print()
|
||||
print(f"{'':>10s}", end="") # noqa: E999
|
||||
for _ in [75, 95]:
|
||||
print(
|
||||
f"{'sec/iter':>16s}{'ex/sec':>10s}{'diff':>10s}", end=""
|
||||
) # noqa: E999
|
||||
print(f"{'sec/iter':>16s}{'ex/sec':>10s}{'diff':>10s}", end="") # noqa: E999
|
||||
print()
|
||||
|
||||
# Print measurements
|
||||
|
@ -209,9 +209,8 @@ def main():
|
||||
x_axis_variables
|
||||
): # run benchmark for every x axis variable
|
||||
if len(x_axis_variables) > 1:
|
||||
args[
|
||||
args["x_axis_name"]
|
||||
] = x_axis_variable # set x axis variable for this benchmark iteration
|
||||
# set x axis variable for this benchmark iteration
|
||||
args[args["x_axis_name"]] = x_axis_variable
|
||||
processes = []
|
||||
start_time = time.time()
|
||||
for rank in range(args["world_size"]):
|
||||
|
Reference in New Issue
Block a user