Wraps a ByteArray without copying (borrow semantics). The caller must ensure the array is not mutated while the tensor is in use.