dropout(_:rate:name:)
Creates a dropout operation and returns the result
Declaration
func dropout(_ tensor: MPSGraphTensor, rate: MPSGraphTensor, name: String?) -> MPSGraphTensorParameters
- tensor:
Input tensor
- rate:
The rate of values to be set to 0
- name:
The name for the operation.
Return Value
A valid MPSGraphTensor object
Discussion
Removes values in the tensor with a percentage chance equal to rate. Removed values are set to 0