Skip to content

Commit 93e39e4

Browse files
hl475facebook-github-bot
authored andcommitted
change shape for some ops to reduce variance
Test Plan: add later Reviewed By: mingzhe09088 Differential Revision: D17175802 fbshipit-source-id: 41e6ef13e3e920d49bdfa0a7d2bda99e0501a9fc
1 parent 0621e2c commit 93e39e4

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

benchmarks/operator_benchmark/pt/cat_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212

1313
# Configs for PT Cat operator
1414
cat_short_configs = op_bench.cross_product_configs(
15-
M=[64, 128],
16-
N=[64],
15+
M=[256, 512],
16+
N=[512],
1717
tags=['short']
1818
)
1919

2020

2121
class CatBenchmark(op_bench.TorchBenchmarkBase):
22-
def init(self, M, N):
23-
self.input_one = torch.rand(M, N)
22+
def init(self, M, N):
23+
self.input_one = torch.rand(M, N)
2424
self.set_module_name('cat')
2525

2626
def forward(self):

benchmarks/operator_benchmark/pt/chunk_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
# Configs for PT Chunk operator
1414
chunks_short_configs = op_bench.cross_product_configs(
15-
M=[64, 128],
16-
N=[64],
17-
chunks=[3],
15+
M=[256, 512],
16+
N=[512],
17+
chunks=[2],
1818
tags=['short']
1919
)
2020

2121

2222
class ChunkBenchmark(op_bench.TorchBenchmarkBase):
23-
def init(self, M, N, chunks):
24-
self.input_one = torch.rand(M, N)
23+
def init(self, M, N, chunks):
24+
self.input_one = torch.rand(M, N)
2525
self.chunks = chunks
2626
self.set_module_name('chunks')
2727

benchmarks/operator_benchmark/pt/gather_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# An example input from this configuration is M=4, N=4, dim=0.
1414
configs = op_bench.config_list(
1515
attrs=[
16-
[4, 4, 0],
17-
[256, 256, 1],
16+
[256, 512, 0],
17+
[512, 512, 1],
1818
],
1919
attr_names=["M", "N", "dim"],
2020
tags=["short"]

benchmarks/operator_benchmark/pt/split_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
# Configs for PT Split operator
1414
split_short_configs = op_bench.cross_product_configs(
15-
M=[64, 128],
16-
N=[64],
17-
parts=[3],
15+
M=[256, 512],
16+
N=[512],
17+
parts=[2],
1818
tags=['short']
1919
)
2020

2121

2222
class SplitBenchmark(op_bench.TorchBenchmarkBase):
23-
def init(self, M, N, parts):
24-
self.input_one = torch.rand(M, N)
23+
def init(self, M, N, parts):
24+
self.input_one = torch.rand(M, N)
2525
self.split_size = int(M * N / parts)
2626
self.set_module_name('split')
2727

benchmarks/operator_benchmark/pt/unary_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def forward(self):
114114
['digamma_', lambda t: t.digamma_()],
115115
['erfinv_', lambda t: t.erfinv_()],
116116
['exponential_', lambda t: t.exponential_()],
117-
['lgamma_', lambda t: t.lgamma_()],
118117
['normal_', lambda t: t.normal_()],
119118
['random_', lambda t: t.random_()],
120119
['sign_', lambda t: t.sign_()],

0 commit comments

Comments
 (0)