Skip to main content

constant

Function constant 

Source
pub fn constant(shape: Vec<usize>, value: f32) -> Result<Tensor, ModelError>
Expand description

Fill a tensor with a constant value.