Coordinates of the directed pooling iterator #
The executable average-pool transfer enumerates flattened windows. Its quotient/remainder loop recovers the same row-major coordinates as the tensor specification.
The usual row-major tensor coordinate represented by a flat graph index.
Instances For
theorem
NN.MLTheory.CROWN.Graph.DirectedBackward.linearize_flatCoordEquiv
(s : Spec.Shape)
(i : Fin s.size)
:
theorem
NN.MLTheory.CROWN.Graph.DirectedBackward.getScalar_flatten_coord
{β : Type}
[TorchLean.Storage β]
{s : Spec.Shape}
(x : TorchLean.Tensor β s)
(i : Fin s.size)
: