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).