Verifies that a buffer of bytes contains a Tensor
and returns it.
Note that verification is still experimental and may not
catch every error, or be maximally performant. For the
previous, unchecked, behavior use
root_as_tensor_unchecked
.
Assumes, without verification, that a buffer of bytes contains a Tensor and returns it.
Verifies, with the given options, that a buffer of bytes
contains a Tensor
and returns it.
Note that verification is still experimental and may not
catch every error, or be maximally performant. For the
previous, unchecked, behavior use
root_as_tensor_unchecked
.
Verifies that a buffer of bytes contains a size prefixed
Tensor
and returns it.
Note that verification is still experimental and may not
catch every error, or be maximally performant. For the
previous, unchecked, behavior use
size_prefixed_root_as_tensor_unchecked
.
Assumes, without verification, that a buffer of bytes contains a size prefixed Tensor and returns it.
Verifies, with the given verifier options, that a buffer of
bytes contains a size prefixed Tensor
and returns
it. Note that verification is still experimental and may not
catch every error, or be maximally performant. For the
previous, unchecked, behavior use
root_as_tensor_unchecked
.