other
torch_to_nnef.op.aten.other
external
external(g: NGraph, node: TensorVariable, name_to_tensor: T.Dict[str, NTensor], inference_target: InferenceTarget)
Add External NNEF Operation in graph.
scalar_tensor
Map PyTorch: 'aten:scalar_tensor' to NNEF.
size
Map PyTorch aten::size
as NNEF.
We can not use NNEF shape_of that have been deprecated since 1.0.1 version:.
The shape_of function is deprecated and is discouraged from use.
The reason is that it provides syntactic means to access a
property of tensors that is not defined via the syntax itself.
Furthermore, its definition is problematic in cases where the shape
of a tensor is not known in graph compilation time.
These result in problems with custom operations and operations with results
of dynamic shape for a consumer of an NNEF document.
By removing support for the shape_of function from NNEF syntax,
it becomes possible to de-couple parsing
from shape propagation in a consumer of an NNEF document.
Since it is a core component to express some dynamic network that may use
tract symbolic dimensions:
for example using stream size to apply an averaging:
We map it to tract_core_shape_of