Skip to content

Commit f615671

Browse files
committed
fix np.zeros argument
1 parent 41d6e64 commit f615671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/benchmarks/bench_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ class Nonzero(Benchmark):
179179

180180
def setup(self, dtype, size):
181181
self.x = np.random.randint(0, 3, size=size).astype(dtype)
182-
self.x_sparse = np.zeros(size=size).astype(dtype)
182+
self.x_sparse = np.zeros(size).astype(dtype)
183183
self.x_sparse[1] = 1
184184
self.x_sparse[-1] = 1
185-
self.x_dense = np.ones(size=size).astype(dtype)
185+
self.x_dense = np.ones(size).astype(dtype)
186186

187187
def time_nonzero(self, dtype, size):
188188
np.nonzero(self.x)

0 commit comments

Comments
 (0)