File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
tensorflow_compression/python/layers Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
# ==============================================================================
15
15
"""Layers for soft rounding."""
16
- import tensorflow as tf
17
16
17
+ import tensorflow as tf
18
18
from tensorflow_compression .python .ops import soft_round_ops
19
19
20
20
21
+ __all__ = [
22
+ "Round" ,
23
+ "SoftRound" ,
24
+ "SoftRoundConditionalMean" ,
25
+ ]
26
+
27
+
21
28
class Round (tf .keras .layers .Layer ):
22
29
"""Applies rounding."""
23
30
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ def main(_):
30
30
py_modules = [("tfc" , tfc )],
31
31
base_dir = os .path .dirname (tfc .__file__ ),
32
32
private_map = {
33
- # soft_round_ops module seems to trigger a bug.
34
- "tfc" : ["python" , "soft_round_ops" ],
33
+ "tfc" : ["python" ],
35
34
},
36
35
code_url_prefix = "https://github.com/tensorflow/compression/tree/master/"
37
36
"tensorflow_compression" ,
You can’t perform that action at this time.
0 commit comments