Skip to main content

cast_tensor_value

Function cast_tensor_value 

Source
pub fn cast_tensor_value(
    cx: &mut Cx,
    value: Value,
    target_dtype: Symbol,
) -> Result<Value>
Expand description

Casts a tensor value into target_dtype and returns it as a runtime value.