View source: R/gen-namespace.R
torch_unsafe_chunk | R Documentation |
Unsafe_chunk
torch_unsafe_chunk(self, chunks, dim = 1L)
self |
(Tensor) the tensor to split |
chunks |
(int) number of chunks to return |
dim |
(int) dimension along which to split the tensor |
Works like torch_chunk()
but without enforcing the autograd restrictions
on inplace modification of the outputs.
This function is safe to use as long as only the input, or only the outputs are modified inplace after calling this function. It is user's responsibility to ensure that is the case. If both the input and one or more of the outputs are modified inplace, gradients computed by autograd will be silently incorrect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.