Function image2tensor::calculate_buffer_size
source · pub fn calculate_buffer_size(
width: u32,
height: u32,
precision: TensorType
) -> usizeExpand description
Calculate the expected tensor data size of an image of width x height with the given
precision.