selector
torch_to_nnef.op.aten.selector
embedding
Map PyTorch: 'aten:embedding' to NNEF.
index_
Translate aten::index
to NNEF.
Fragment gather<?>(.
input: tensor<?>, # the tensor to gather from
indices: tensor
torch ir, in this case structure indexes_node
with:
a list of n values where n <= input_node rank
each value is either a constant or a tensor.
if the constant is None this means the full dimension
index_select
Map PyTorch: 'aten:index_select' to NNEF.
masked_fill
Map PyTorch: 'aten:masked_fill' to NNEF.
narrow
Fancy slice made in PyTorch.
torch.narrow(input, dim, start, length)
Example:
import torch x = torch.tensor([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) torch.narrow(x, 0, 0, 2) tensor([[1, 2, 3], [4, 5, 6]])
slice_
Map PyTorch: 'aten:slice' to NNEF.
tract_pre_0_21_7_slice
Old version of slice for tract version prior to 0.21.7.