We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
relu.premake
1 parent fe097d3 commit 5381917Copy full SHA for 5381917
src/ntops/kernels/relu.py
@@ -10,8 +10,12 @@ def application(input, output):
10
output = max(0.0, input) # noqa: F841
11
12
13
-@functools.cache
14
-def make(ndim):
15
- tensors = (Tensor(ndim), Tensor(ndim))
+def premake(ndim, dtype, block_size):
+ tensors = (Tensor(ndim, dtype=dtype), Tensor(ndim, dtype=dtype))
+
16
+ return functools.partial(arrangement, block_size=block_size), application, tensors
17
- return ninetoothed.make(arrangement, application, tensors)
18
19
+@functools.cache
20
+def make(ndim, dtype=None, block_size=None):
21
+ return ninetoothed.make(*premake(ndim, dtype, block_size))
0 commit comments