pub fn tensor_to_js_value(tensor: OutputTensor) -> JsValue {
    match tensor {
        OutputTensor::F32(fs) => JsValue::from_serde(&fs).unwrap(),
        OutputTensor::I32(ints) => JsValue::from_serde(&ints).unwrap(),
        OutputTensor::I64(ints) => JsValue::from_serde(&ints).unwrap(),
    }
}
/// Convert an OutputTensor to a JsValue (we cannot implement Into<JsValue> for OutputTensor here)
Convert an OutputTensor to a JsValue (we cannot implement Into for OutputTensor here)
Convert an OutputTensor to a JsValue ( we cannot implement Into for OutputTensor here )
pub fn tensor_to_js_value(tensor: OutputTensor) -> JsValue {
    match tensor {
        OutputTensor::F32(fs) => JsValue::from_serde(&fs).unwrap(),
        OutputTensor::I32(ints) => JsValue::from_serde(&ints).unwrap(),
        OutputTensor::I64(ints) => JsValue::from_serde(&ints).unwrap(),
    }
}
pub fn tensor_to_js_value ( tensor : OutputTensor ) -> JsValue { match tensor { OutputTensor :: F32 ( fs ) => JsValue :: from_serde ( & fs ) . unwrap ( ) , OutputTensor :: I32 ( ints ) => JsValue :: from_serde ( & ints ) . unwrap ( ) , OutputTensor :: I64 ( ints ) => JsValue :: from_serde ( & ints ) . unwrap ( ) , } }
Convert an OutputTensor to a JsValue (we cannot implement Into<JsValue> for OutputTensor here)
Convert an OutputTensor to a JsValue ( we cannot implement Into<JsValue > for OutputTensor here )
tensor
OutputTensor
tensor
OutputTensor