Applies a unary function to the provided tensor and returns the result.
Applies a unary function to the provided tensor and returns the result.
Tensor-like object to apply the unary op function on.
Unary function to apply.
Resulting tensor-like object that matches the type of tensorLike
.
Type trait for defining functions operating on and returning tensors.