def shape

bendtorch-core@0.1.0.0 · src/tensor/core.bend:23

import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

23def shape(dynamic: Dynamic) -> Dynamic & Shape.Shape:
24  match dynamic:
25    case Packed{+shape, tensor}:
26      (Packed{shape, tensor}, shape)

Uses (4)

Used by (18)