Type-level sum function for use in other type computations
Input tensor storage type
Axes to reduce along
Whether to keep reduced dimensions
type Input = TensorStorage<Float32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;type BatchSum = Sum<Input, [0]>; // Sum over batch dimension Copy
type Input = TensorStorage<Float32, [2, 3, 4], [12, 4, 1], DefaultLayoutFlags>;type BatchSum = Sum<Input, [0]>; // Sum over batch dimension
Type-level sum function for use in other type computations