mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
new -> zeros
This commit is contained in:
parent
16d564a53c
commit
daf073535f
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def cl_supsample_krnl_build(cl_ctx, result_op):
|
|||
def supersample_op(ctx, input, out_shape, kernel_size, result_op):
|
||||
(N, C, Yin, Xin), (Yout, Xout) = input.shape, out_shape[2:]
|
||||
py,px = kernel_size
|
||||
ret = buffer_new(ctx, out_shape)
|
||||
ret = buffer_zeros(ctx, out_shape)
|
||||
osize = np.array((Xout, Yout), dtype=cl.cltypes.uint2)
|
||||
isize = np.array((Xin, Yin), dtype=cl.cltypes.uint2)
|
||||
ksize = np.array((px, py), dtype=cl.cltypes.uint2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue