aesara.tensor.flatnonzero#
- aesara.tensor.flatnonzero(a)[source]#
Return a vector of indices that are non-zero in the flattened version of
a.- Parameters:
a (tensor) – Input tensor
- Returns:
Output vector, containing the indices of the elements of
a.flatten()that are non-zero.- Return type:
vector
See also
nonzeroReturn the indices of the non-zero elements of the input array.
nonzero_valuesReturn the non-zero elements of the input array