Skip to content

Commit 6821906

Browse files
Johannes Ballécopybara-github
authored andcommitted
Fixes typo in docstring: Gamma, not Golomb.
PiperOrigin-RevId: 595128706 Change-Id: Idbe46d52111d0c6dbb36ddd0a1d604a2bdaef2ce
1 parent 9a4ef02 commit 6821906

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensorflow_compression/cc/ops/run_length_ops.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ calling RunLengthEncode with run_length_code = -1, magnitude_code = -1, and
3838
use_run_length_for_non_zeros = false.
3939
4040
run_length_code: If >= 0, use Rice code with this parameter to encode run
41-
lengths, else use Golomb code.
41+
lengths, else use Elias gamma code.
4242
magnitude_code: If >= 0, use Rice code with this parameter to encode magnitudes,
43-
else use Golomb code.
43+
else use Elias gamma code.
4444
use_run_length_for_non_zeros: If true, alternate between coding run lengths of
4545
zeros and non-zeros. If false, only encode run lengths of zeros, and encode
4646
non-zeros one by one.
@@ -72,9 +72,9 @@ calling RunLengthDecode with run_length_code = -1, magnitude_code = -1, and
7272
use_run_length_for_non_zeros = false.
7373
7474
run_length_code: If >= 0, use Rice code with this parameter to decode run
75-
lengths, else use Golomb code.
75+
lengths, else use Elias gamma code.
7676
magnitude_code: If >= 0, use Rice code with this parameter to decode magnitudes,
77-
else use Golomb code.
77+
else use Elias gamma code.
7878
use_run_length_for_non_zeros: If true, alternate between coding run lengths of
7979
zeros and non-zeros. If false, only decode run lengths of zeros, and decode
8080
non-zeros one by one.

0 commit comments

Comments
 (0)