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 for TensorIndexer
impl PartialEq for TensorIndexer
impl StructuralPartialEq for TensorIndexer
Auto Trait Implementations§
impl Freeze for TensorIndexer
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