Decodes data
using run-length coding.
tfc.ops.run_length_decode(
code,
shape,
run_length_code,
magnitude_code,
use_run_length_for_non_zeros,
name=None
)
This is the inverse operation to RunLengthEncode
. The shape of the tensor
that was encoded must be known by the caller.
This op implements a superset of RunLengthGammaDecode, which is equivalent to calling RunLengthDecode with run_length_code = -1, magnitude_code = -1, and use_run_length_for_non_zeros = false.
Returns | |
---|---|
A Tensor of type int32 .
An int32 tensor of decoded values, with shape shape .
|