softMax(with:axis:name:)
Computes the softmax function on the input tensor along the specified axis.
Declaration
func softMax(with tensor: MPSGraphTensor, axis: Int, name: String?) -> MPSGraphTensorParameters
- tensor:
The input tensor.
- axis:
The axis along which softmax is computed.
- name:
The name for the operation.
Return Value
A valid MPSGraphTensor object