Added PmfToQuantizedCdf op to contrib/coder in TensorFlow.
authorSung Jin Hwang <sjhwang@google.com>
Fri, 13 Apr 2018 21:51:16 +0000 (14:51 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 13 Apr 2018 21:53:52 +0000 (14:53 -0700)
commitaedc409605be54f9c7cb67f7b49bdc123d65a8fb
tree50e9dea2433a6a37eca1d0fd5e8c4f0eab72fa38
parent8600d918a63c658b9b79ba96ee821c903ba3ee94
Added PmfToQuantizedCdf op to contrib/coder in TensorFlow.

The added op transforms probability mass functions (PMF) to quantized
cumulative distribution function (CDF), which can be used by range coder ops in
contrib/coder.

The op takes greedy approach to ensure that the post-quantization probability
masses do not sum over the maximum quantized value. The op does not make any
adjustment when the post-quantization probability masses already sum less than
the maximum value.

PiperOrigin-RevId: 192827779
tensorflow/contrib/coder/BUILD
tensorflow/contrib/coder/kernels/pmf_to_cdf_op.cc [new file with mode: 0644]
tensorflow/contrib/coder/kernels/pmf_to_cdf_op_test.cc [new file with mode: 0644]
tensorflow/contrib/coder/ops/coder_ops.cc