Enum tch::index::TensorIndexer
source · [−]pub enum TensorIndexer {
Select(i64),
Narrow(Bound<i64>, Bound<i64>),
IndexSelect(Tensor),
InsertNewAxis,
}
Variants
Select(i64)
Narrow(Bound<i64>, Bound<i64>)
IndexSelect(Tensor)
InsertNewAxis
Trait Implementations
sourceimpl Debug for TensorIndexer
impl Debug for TensorIndexer
sourceimpl From<&[i64]> for TensorIndexer
impl From<&[i64]> for TensorIndexer
sourceimpl From<&Tensor> for TensorIndexer
impl From<&Tensor> for TensorIndexer
sourceimpl From<NewAxis> for TensorIndexer
impl From<NewAxis> for TensorIndexer
sourceimpl From<Range<i64>> for TensorIndexer
impl From<Range<i64>> for TensorIndexer
sourceimpl From<RangeFrom<i64>> for TensorIndexer
impl From<RangeFrom<i64>> for TensorIndexer
sourceimpl From<RangeFull> for TensorIndexer
impl From<RangeFull> for TensorIndexer
sourceimpl From<RangeInclusive<i64>> for TensorIndexer
impl From<RangeInclusive<i64>> for TensorIndexer
sourcefn from(range: RangeInclusive<i64>) -> Self
fn from(range: RangeInclusive<i64>) -> Self
Converts to this type from the input type.
sourceimpl From<RangeTo<i64>> for TensorIndexer
impl From<RangeTo<i64>> for TensorIndexer
sourceimpl From<RangeToInclusive<i64>> for TensorIndexer
impl From<RangeToInclusive<i64>> for TensorIndexer
sourcefn from(range: RangeToInclusive<i64>) -> Self
fn from(range: RangeToInclusive<i64>) -> Self
Converts to this type from the input type.
sourceimpl From<i64> for TensorIndexer
impl From<i64> for TensorIndexer
sourceimpl PartialEq<TensorIndexer> for TensorIndexer
impl PartialEq<TensorIndexer> for TensorIndexer
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TensorIndexer) -> bool
fn ne(&self, other: &TensorIndexer) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more