tensor_into_value

Function tensor_into_value 

Source
pub fn tensor_into_value(tensor: Tensor) -> Value
Expand description

Convert a Tensor back into a runtime value.

Scalars (exactly one element) become Value::Num, all other tensors remain as dense tensor variants.