"vscode:/vscode.git/clone" did not exist on "48089881172b507d96c47ba3730085664a22a83f"
Commit c67d2c08 authored by Abdullah Rashwan's avatar Abdullah Rashwan Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 397179381
parent 42ad9d5e
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment