def walk
bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:370
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
370def walk(+request: Request) -> Walk:
371 Request{+operation, +plan} = request
372 +le = Shape.extents(Shape.left_shape(plan))
373 +re = Shape.extents(Shape.right_shape(plan))
374 +oe = Shape.extents(Shape.output_shape(plan))
375 Walk{operation, le, re, oe, Shape.index_map(plan), left_slot(le, re, oe, Shape.index_map(plan)),
376 right_slot(le, re, oe, Shape.index_map(plan))}