Unsafe_split
Source:R/gen-namespace-docs.R
, R/gen-namespace-examples.R
, R/gen-namespace.R
torch_unsafe_split.Rd
Unsafe_split
unsafe_split(tensor, split_size_or_sections, dim=0) -> List of Tensors
Works like torch_split()
but without enforcing the autograd restrictions
on inplace modification of the outputs.
Warning
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.