proc zeros_like[T: SomeFloat](t: ClTensor[T]): ClTensor[T] {.noinit, inline.}
Creates a new ClTensor filled with 0 with the same shape as the input Input:- Shape of the CudaTensor
- Type of its elements
Result:
- A zero-ed ClTensor of the same shape
Source
Edit