gausplat_trainer::train::gaussian_3d::backend::wgpu

Function build_info

pub fn build_info<R, E>(tensors: &[&JitTensor<R>]) -> Vec<u32>
where R: JitRuntime, E: JitElement,
Expand description

Create a vector containing the dimension, strides and shape of tensors.

ยงExample

With two tensors (lhs, rhs)

IndexesValue
0..1D
1..D + 1lhs strides
(D + 1)..(2 * D + 1)rhs strides
(2 * D + 1)..(3 * D + 1)lhs shape
(3 * D + 1)..(4 * D + 1)rhs shape