Transforms.error_code: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms Lines 492-507 of bendtorch-core@0.1.0.0/src/tensor/transforms.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/transforms.bend&start_line=492&end_line=507 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout def error_code(error: Error) -> U32: match error: case LayoutError{Layout.ShapeError{error}}: Shape.error_code(error) case LayoutError{Layout.AxesLengthMismatch{}}: 12 case LayoutError{Layout.AxisOutOfBounds{}}: 13 case LayoutError{Layout.DuplicateAxis{}}: 14 case LayoutError{Layout.ElementCountMismatch{}}: 15 case LayoutError{Layout.MappingError{}}: 16 case TensorError{error}: Core.error_code(error) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=error_code https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/core.bend&name=error_code https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/layout.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/transforms.bend&name=Error