fn try_from(value: OutputTensor) -> Result<Self, Self::Error> {
        match value {
            OutputTensor::F32(floats) => Ok(floats),
            OutputTensor::I32(ints) => ints
                .into_iter()
                .map(|i| f32::from_i32(i).ok_or(TensorConversionError::OutOfBoundsError))
                .collect::<Result<_, _>>(),
            OutputTensor::I64(ints) => ints
                .into_iter()
                .map(|i| f32::from_i64(i).ok_or(TensorConversionError::OutOfBoundsError))
                .collect::<Result<_, _>>(),
        }
    }
/// Convert OutputTensor into a Vec<f32>, possibly converting integer tensors if the values fit
Convert OutputTensor into a Vec, possibly converting integer tensors if the values fit
Convert OutputTensor into a Vec possibly converting integer tensors if the values fit
fn try_from(value: OutputTensor) -> Result<Self, Self::Error> {
        match value {
            OutputTensor::F32(floats) => Ok(floats),
            OutputTensor::I32(ints) => ints
                .into_iter()
                .map(|i| f32::from_i32(i).ok_or(TensorConversionError::OutOfBoundsError))
                .collect::<Result<_, _>>(),
            OutputTensor::I64(ints) => ints
                .into_iter()
                .map(|i| f32::from_i64(i).ok_or(TensorConversionError::OutOfBoundsError))
                .collect::<Result<_, _>>(),
        }
    }
fn try_from ( value : OutputTensor ) -> Result < Self , Self :: Error > { match value { OutputTensor :: F32 ( floats ) => Ok ( floats ) , OutputTensor :: I32 ( ints ) => ints . into_iter ( ) . map ( | i | f32 :: from_i32 ( i ) . ok_or ( TensorConversionError :: OutOfBoundsError ) ) . collect :: < Result < _ , _ > > ( ) , OutputTensor :: I64 ( ints ) => ints . into_iter ( ) . map ( | i | f32 :: from_i64 ( i ) . ok_or ( TensorConversionError :: OutOfBoundsError ) ) . collect :: < Result < _ , _ > > ( ) , } }
Convert OutputTensor into a Vec<f32>, possibly converting integer tensors if the values fit
Convert OutputTensor into a Vec<f32 > possibly converting integer tensors if the values fit
value
OutputTensor
value
OutputTensor