reverseSquareRoot(with:name:)
Applies the reverse square root operation to the input tensor elements.
Declaration
func reverseSquareRoot(with tensor: MPSGraphTensor, name: String?) -> MPSGraphTensorParameters
- tensor:
The input tensor.
- name:
An optional string which serves as an identifier for the operation.
Return Value
A valid MPSGraphTensor object containing the elementwise result of the applied operation.
Discussion
The reverse square root operation is the reciprocal of the square root.