def flatten_checked
import bendtorch-core@0.1.0.0/src/shape/core.bend as Coreimport Base
712def flatten_checked(+shape: Shape, values: List<&2, U32>) -> Result<&2, &2, Error, FlatIndex<shape>>:
713 +copy = values
714 flatten_checked.ranked(shape, copy, bool_case(Nat.is_eq(rank_dimensions(dimensions(shape)), rank_dimensions(copy))))
Uses (11)
Used by (22)
- bendtorch-core@0.1.0.0/src/tensor/core:read_coordinate
- bendtorch-core@0.1.0.0/src/tensor/matmul_LAWS:coordinate_observe
- bendtorch-core@0.1.0.0/src/tensor/core:write_coordinate
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:flatten_checked
- bendtorch-core@0.1.0.0/src/tensor/matmul_PROOF:coordinate_certificate
- …