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 a BridgeError when the tensor has an external scalar kind, when reading its host slice fails, or when the dense storage materialization fails.