Module: tfc.ops

View source on GitHub

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.

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_decode(...): Decodes data using run-length coding.

run_length_encode(...): Encodes data using run-length coding.

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.

stochastic_round(...): Rounds inputs / step_size stochastically.

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.

Last updated 2024年04月26日 UTC.