def cat
import bendtorch@1.3.0.0/tensor.bend as Tensorimport Base
600# a then b along axis d
601def cat(+a: List<&2, Nat>, +b: List<&2, Nat>, +d: Nat, -pf: {True{} == cat_ok(a, b, d) : Bool}, x: Tensor<a>, y: Tensor<b>) -> T3<a, b, cat_shape(a, b, d)>:
602 match x y:
603 case Tensor{dx} Tensor{dy}:
604 cat_b(a, b, d, dy, place_l(numel(a), 0, cat_map_a(a, b, d), Array.get(F32, dx, 0), new(numel(cat_shape(a, b, d)))))
Uses (14)
Used by (0)
No other definition uses this definition.