Skip to content

Commit 6158a0e

Browse files
Johannes Ballécopybara-github
authored andcommitted
Adds missing __all__ to soft-round layers.
PiperOrigin-RevId: 362230048 Change-Id: Ice9a8332701d207baf9b4ec4a96b5ff975a75668
1 parent 97d7c9a commit 6158a0e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

tensorflow_compression/python/layers/soft_round.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@
1313
# limitations under the License.
1414
# ==============================================================================
1515
"""Layers for soft rounding."""
16-
import tensorflow as tf
1716

17+
import tensorflow as tf
1818
from tensorflow_compression.python.ops import soft_round_ops
1919

2020

21+
__all__ = [
22+
"Round",
23+
"SoftRound",
24+
"SoftRoundConditionalMean",
25+
]
26+
27+
2128
class Round(tf.keras.layers.Layer):
2229
"""Applies rounding."""
2330

tools/generate_docs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def main(_):
3030
py_modules=[("tfc", tfc)],
3131
base_dir=os.path.dirname(tfc.__file__),
3232
private_map={
33-
# soft_round_ops module seems to trigger a bug.
34-
"tfc": ["python", "soft_round_ops"],
33+
"tfc": ["python"],
3534
},
3635
code_url_prefix="https://github.com/tensorflow/compression/tree/master/"
3736
"tensorflow_compression",

0 commit comments

Comments
 (0)