Mojo function
sum
sum[axis: Int](inp: LayoutTensor[dtype, layout, rank, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment], out: LayoutTensor[dtype, layout, rank, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment])
sum[axis: Int](inp: LayoutTensor[dtype, layout, rank, address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth, masked=masked, alignment=alignment]) -> LayoutTensor[dtype, _reduce_res_row_major_shape(axis, layout), rank.__sub__(1), address_space=address_space, element_layout=element_layout, layout_bitwidth=layout_bitwidth]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!