Closed Michael-F-Bryan closed 2 years ago
This enhances the hotg_rune_core::Tensor type by letting people view a contiguous subsection of a tensor.
hotg_rune_core::Tensor
You might use this if, for example, you had a f32[1, 256, 256, 3] tensor and wanted to access elements [0, i, j, ..] as a &[f32; 3].
f32[1, 256, 256, 3]
[0, i, j, ..]
&[f32; 3]
@Michael-F-Bryan, Perfect, This would be sufficient. Thanks
This enhances the
hotg_rune_core::Tensor
type by letting people view a contiguous subsection of a tensor.You might use this if, for example, you had a
f32[1, 256, 256, 3]
tensor and wanted to access elements[0, i, j, ..]
as a&[f32; 3]
.