pub fn storage_payload_native_read_input(
storage: &Storage,
) -> Result<NativeTensorReadInput<'_>, BridgeError>Expand description
Build a read-only native tensor input over the compact storage payload.
Contiguous payloads are borrowed without copying. Non-contiguous payloads
are materialized into an owned native tensor. Both paths preserve the stored
scalar dtype, so f32/Complex32 payloads are served without widening.
ยงErrors
Returns a BridgeError when the storage dtype is not a floating or
complex floating dtype, when the contiguous payload view cannot be built, or
when the payload cannot be read into a native tensor.