Stop gradients from being computed.
The operation is the identity but it prevents gradients from flowing
through the array.
- Parameters:
a (array) – Input array.
- Returns:
- The unchanged input
a
but without gradient flowing through it.
- Return type:
array