tensor.optional
Constructs an optional-type value containing either an empty optional of a certain type specified by the attribute, or a non-empty value containing the input element.
Args
self
(@Tensor<T>
) - The input tensor.
Returns
The optional output enclosing the input element.
Examples
Last updated