Module Operation.At

val (.@{}) : (Context.t * Tensor.t) -> Base.int Base.array -> Base.float

Get the value at the given indices: At.((ctx, t).@{idx}).

val (.@%{}) : (Context.t * Tensor.t) -> Base.int Base.array -> Base.float
val (.@{}<-) : (Context.t * Tensor.t) -> Base.int Base.array -> Base.float -> Context.t

Set the value at the given indices: At.((ctx, t).@{idx} <- v); returns the updated context.

val (.@%{}<-) : (Context.t * Tensor.t) -> Base.int Base.array -> Base.float -> Context.t
val (.@[]) : (Context.t * Tensor.t) -> Base.int -> Base.float

Get the value at the given index from a single-axis shape tensor.

val (.@%[]) : (Context.t * Tensor.t) -> Base.int -> Base.float
val (.@[]<-) : (Context.t * Tensor.t) -> Base.int -> Base.float -> Context.t

Set the value at the given index for a single-axis shape tensor; returns the updated context.

val (.@%[]<-) : (Context.t * Tensor.t) -> Base.int -> Base.float -> Context.t