BatchedMatmul.left_operand: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend as BatchedMatmul Lines 49-60 of bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend&start_line=49&end_line=60 import Base import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matrix def left_operand(dims: List<&2, U32>) -> Result<&2, &2, Matrix.Error, Operand>: match dims: case +k <> Nil{}: Done{Operand{Batch{0n, 1, 1}, 1, k, True{}}} case +m <> +k <> Nil{}: Done{Operand{Batch{0n, 1, 1}, m, k, False{}}} case +b <> +m <> +k <> Nil{}: Done{Operand{Batch{1n, 1, b}, m, k, False{}}} case +a <> +b <> +m <> +k <> Nil{}: Done{Operand{Batch{2n, a, b}, m, k, False{}}} case rest: Fail{Matrix.RankMismatch{}} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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/tensor/batched_matmul.bend&name=Batch https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend&name=Operand https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/matmul.bend&name=Error