pub fn encode(bytes: &[u8]) -> Result<Matrix>
Upload raw bytes as a rank-one U8 Matrix on this thread’s default runtime.
Returns an error when the default runtime cannot be initialized or when allocation or upload fails.