Enum tch::TensorIndexer 
source · pub enum TensorIndexer {
    Select(i64),
    Narrow(Bound<i64>, Bound<i64>),
    IndexSelect(Tensor),
    InsertNewAxis,
}Variants§
Trait Implementations§
source§impl Debug for TensorIndexer
 
impl Debug for TensorIndexer
source§impl From<&[i64]> for TensorIndexer
 
impl From<&[i64]> for TensorIndexer
source§impl From<&Tensor> for TensorIndexer
 
impl From<&Tensor> for TensorIndexer
source§impl From<NewAxis> for TensorIndexer
 
impl From<NewAxis> for TensorIndexer
source§impl From<RangeFull> for TensorIndexer
 
impl From<RangeFull> for TensorIndexer
source§impl From<RangeInclusive<i64>> for TensorIndexer
 
impl From<RangeInclusive<i64>> for TensorIndexer
source§fn from(range: RangeInclusive<i64>) -> Self
 
fn from(range: RangeInclusive<i64>) -> Self
Converts to this type from the input type.
source§impl From<RangeToInclusive<i64>> for TensorIndexer
 
impl From<RangeToInclusive<i64>> for TensorIndexer
source§fn from(range: RangeToInclusive<i64>) -> Self
 
fn from(range: RangeToInclusive<i64>) -> Self
Converts to this type from the input type.
source§impl From<i64> for TensorIndexer
 
impl From<i64> for TensorIndexer
source§impl PartialEq<TensorIndexer> for TensorIndexer
 
impl PartialEq<TensorIndexer> for TensorIndexer
source§fn eq(&self, other: &TensorIndexer) -> bool
 
fn eq(&self, other: &TensorIndexer) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TensorIndexer
Auto Trait Implementations§
impl RefUnwindSafe for TensorIndexer
impl Send for TensorIndexer
impl !Sync for TensorIndexer
impl Unpin for TensorIndexer
impl UnwindSafe for TensorIndexer
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