Commit 992a5bfa authored by Le Hou's avatar Le Hou Committed by A. Unique TensorFlower
Browse files

Log transformer_scaffold configs.

PiperOrigin-RevId: 337540237
parent 83aad58f
......@@ -15,6 +15,7 @@
"""Keras-based transformer scaffold layer."""
# pylint: disable=g-classes-have-attributes
from absl import logging
import gin
import tensorflow as tf
......@@ -207,6 +208,7 @@ class TransformerScaffold(tf.keras.layers.Layer):
name="output_layer_norm", axis=-1, epsilon=1e-12, dtype=tf.float32)
super(TransformerScaffold, self).build(input_shape)
logging.info("%s configs: %s", self.__class__.__name__, self.get_config())
def get_config(self):
config = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment