Skip to content

Commit ad75044

Browse files
Xharkcopybara-github
authored andcommitted
Allows wrapping for entropy model.
PiperOrigin-RevId: 331651188 Change-Id: Id7d165d11567eec86dda8ee2eac9d3f2fd289043
1 parent 4d79569 commit ad75044

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tensorflow_compression/python/entropy_models/continuous_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,17 @@ def _check_compression(self):
103103
@property
104104
def cdf(self):
105105
self._check_compression()
106-
return self._cdf.value()
106+
return tf.identity(self._cdf)
107107

108108
@property
109109
def cdf_offset(self):
110110
self._check_compression()
111-
return self._cdf_offset.value()
111+
return tf.identity(self._cdf_offset)
112112

113113
@property
114114
def cdf_length(self):
115115
self._check_compression()
116-
return self._cdf_length.value()
116+
return tf.identity(self._cdf_length)
117117

118118
@property
119119
def dtype(self):

0 commit comments

Comments
 (0)