pub fn constant(shape: Vec<usize>, value: f32) -> Result<Tensor, ModelError>
Fill a tensor with a constant value.