Skip to main content

native_tensor_primal_to_storage

Function native_tensor_primal_to_storage 

Source
pub fn native_tensor_primal_to_storage(
    tensor: &Tensor,
) -> Result<Storage, BridgeError>
Expand description

Materialize a native tensor into dense storage.

ยงErrors

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