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.