Module: tfc.ops

TensorFlow operations and functions.

Functions

create_range_decoder(...): Creates range decoder objects to be used by EntropyDecode* ops.

create_range_encoder(...): Creates range encoder objects to be used by EntropyEncode* ops.

entropy_decode_channel(...): Decodes the encoded stream inside handle.

entropy_decode_finalize(...): Finalizes the decoding process. This op performs a weak sanity check, and the

entropy_decode_index(...): Decodes the encoded stream inside handle.

entropy_encode_channel(...): Encodes each input in value.

entropy_encode_finalize(...): Finalizes the encoding process and extracts byte stream from the encoder.

entropy_encode_index(...): Encodes each input in value according to a distribution selected by index.

lower_bound(...): Same as tf.maximum, but with helpful gradient for inputs < bound.

perturb_and_apply(...): Perturbs the inputs of a pointwise function.

pmf_to_quantized_cdf(...): Converts a PMF into a quantized CDF for range coding.

round_st(...): Straight-through round with optional quantization offset.

run_length_gamma_decode(...): Decodes data using run-length and Elias gamma coding.

run_length_gamma_encode(...): Encodes data using run-length and Elias gamma coding.

same_padding_for_kernel(...): Determine correct amount of padding for same convolution.

soft_round(...): Differentiable approximation to round.

soft_round_conditional_mean(...): Conditional mean of inputs given noisy soft rounded values.

soft_round_inverse(...): Inverse of soft_round.

upper_bound(...): Same as tf.minimum, but with helpful gradient for inputs > bound.