reverse(_:name:)
Creates a reverse operation and returns the result tensor.
Declaration
func reverse(_ tensor: MPSGraphTensor, name: String?) -> MPSGraphTensorParameters
- tensor:
The tensor to be reversed.
- name:
The name for the operation.
Return Value
A valid MPSGraphTensor object.
Discussion
Reverses a tensor on all axes. Semantics based on TensorFlow reverse op.