isNaN(with:name:)
Checks if the input tensor elements are NaN or not.
Declaration
func isNaN(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
If the input tensor element is NaN, the operation returns true, else it returns false.