pub struct Bool;Trait Implementations§
source§impl<B> BasicOps<B> for Boolwhere
B: Backend,
impl<B> BasicOps<B> for Boolwhere B: Backend,
type Elem = bool
fn empty<const D: usize>( shape: Shape<D>, device: &<B as Backend>::Device ) -> <Bool as TensorKind<B>>::Primitive<D>
fn shape<const D: usize>( tensor: &<Bool as TensorKind<B>>::Primitive<D> ) -> Shape<D>
fn reshape<const D1: usize, const D2: usize>( tensor: <Bool as TensorKind<B>>::Primitive<D1>, shape: Shape<D2> ) -> <Bool as TensorKind<B>>::Primitive<D2>
fn index<const D1: usize, const D2: usize>( tensor: <Bool as TensorKind<B>>::Primitive<D1>, indexes: [Range<usize>; D2] ) -> <Bool as TensorKind<B>>::Primitive<D1>
fn index_assign<const D1: usize, const D2: usize>( tensor: <Bool as TensorKind<B>>::Primitive<D1>, indexes: [Range<usize>; D2], value: <Bool as TensorKind<B>>::Primitive<D1> ) -> <Bool as TensorKind<B>>::Primitive<D1>
fn device<const D: usize>( tensor: &<Bool as TensorKind<B>>::Primitive<D> ) -> <B as Backend>::Device
fn to_device<const D: usize>( tensor: <Bool as TensorKind<B>>::Primitive<D>, device: &<B as Backend>::Device ) -> <Bool as TensorKind<B>>::Primitive<D>
fn into_data<const D: usize>( tensor: <Bool as TensorKind<B>>::Primitive<D> ) -> Data<<Bool as BasicOps<B>>::Elem, D>
fn from_data<const D: usize>( data: Data<<Bool as BasicOps<B>>::Elem, D>, device: &<B as Backend>::Device ) -> <Bool as TensorKind<B>>::Primitive<D>
fn repeat<const D: usize>( tensor: <Bool as TensorKind<B>>::Primitive<D>, dim: usize, times: usize ) -> <Bool as TensorKind<B>>::Primitive<D>
fn equal<const D: usize>( lhs: <Bool as TensorKind<B>>::Primitive<D>, rhs: <Bool as TensorKind<B>>::Primitive<D> ) -> Tensor<B, D, Bool>
fn equal_elem<const D: usize>( lhs: <Bool as TensorKind<B>>::Primitive<D>, rhs: <Bool as BasicOps<B>>::Elem ) -> Tensor<B, D, Bool>
fn cat<const D: usize>( vectors: Vec<<Bool as TensorKind<B>>::Primitive<D>, Global>, dim: usize ) -> <Bool as TensorKind<B>>::Primitive<D>
fn elem_type_name() -> &'static str
Auto Trait Implementations§
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more