We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa2a399 commit a6a74b1Copy full SHA for a6a74b1
1 file changed
test/common.py
@@ -33,9 +33,7 @@ def now_timestamp():
33
return datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')
34
35
36
-def random_data(shape=None, dtype=np.int):
37
- if shape is None:
38
- return dtype(np.random.rand() * 1000)
+def random_data(shape, dtype):
39
return (np.random.rand(*shape) * 1000).astype(dtype)
40
41
0 commit comments