Skip to main content

storage_to_native_tensor

Function storage_to_native_tensor 

Source
pub fn storage_to_native_tensor(
    storage: &Storage,
    logical_dims: &[usize],
) -> Result<Tensor, BridgeError>
Expand description

Convert storage to a dense native tensor.

ยงErrors

Returns an error when the storage cannot be converted to a native tensor (a scalar-kind mismatch or backend failure).