提交 45fd9249 编写于 作者: A Abdullah Rashwan 提交者: A. Unique TensorFlower

Internal change

PiperOrigin-RevId: 397179381
上级 1c79ece9
......@@ -86,7 +86,8 @@ class SimCLRModel(tf.keras.Model):
features = inputs
# Base network forward pass.
endpoints = self._backbone(features, training=training)
endpoints = self._backbone(
features, training=training and self._backbone_trainable)
features = endpoints[max(endpoints.keys())]
projection_inputs = layers.GlobalAveragePooling2D()(features)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册