bool_select

Function bool_select 

Source
pub fn bool_select<R, T, B, D, I>(
    tensor: &TensorAny<R, T, B, D>,
    axis: isize,
    mask: I,
) -> Tensor<T, B, D>
Expand description

Returns a new tensor, which indexes the input tensor along dimension axis using the boolean entries in mask.