View source: R/gen-namespace.R
torch_unsafe_split | R Documentation |
Unsafe_split
torch_unsafe_split(self, split_size, dim = 1L)
self |
(Tensor) tensor to split. |
split_size |
(int) size of a single chunk or list of sizes for each chunk |
dim |
(int) dimension along which to split the tensor. |
Works like torch_split()
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.