At

data class At<T : DType, V>(val index: Int) : Slice<T, V> (source)

Represents selection of a single specific index.

At slices reduce dimensionality by selecting a single element along a dimension, similar to Python's tensor[index] notation. This results in a view with one fewer dimension than the parent.

Characteristics

  • Reduces tensor rank by 1

  • Point access (no range)

  • Efficient for layer/channel extraction

  • Zero stride along selected dimension

Parameters

index

the specific index to select

Constructors

Link copied to clipboard
constructor(index: Int)

Properties

Link copied to clipboard
val index: Int