Skip to content

Commit

Permalink
benchmarks/patches: fix corrupt patch file error (#6124)
Browse files Browse the repository at this point in the history
Fixes the following error:
$ git apply ../pytorch/xla/benchmarks/patches/mismatched_batch_size.patch error: corrupt patch at line 14
  • Loading branch information
cota authored Dec 12, 2023
1 parent 2d359a3 commit fc713b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/patches/mismatched_batch_size.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/torchbenchmark/util/model.py b/torchbenchmark/util/model.py
index 8593ba4c..57fef507 100644
--- a/torchbenchmark/util/model.py
+++ b/torchbenchmark/util/model.py
@@ -182,6 +182,7 @@ class BenchmarkModel(metaclass=PostInitProcessor):
@@ -182,6 +182,8 @@ class BenchmarkModel(metaclass=PostInitProcessor):

# use the device suggestion on CUDA inference tests, key should be either eval_batch_size or train_batch_size
device_batch_size_key = f"{self.test}_batch_size"
Expand Down

0 comments on commit fc713b7

Please sign in to comment.