Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c67d2c08
Commit
c67d2c08
authored
Sep 16, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Sep 16, 2021
Browse files
Internal change
PiperOrigin-RevId: 397179381
parent
42ad9d5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/vision/beta/projects/simclr/modeling/simclr_model.py
...cial/vision/beta/projects/simclr/modeling/simclr_model.py
+2
-1
No files found.
official/vision/beta/projects/simclr/modeling/simclr_model.py
View file @
c67d2c08
...
@@ -86,7 +86,8 @@ class SimCLRModel(tf.keras.Model):
...
@@ -86,7 +86,8 @@ class SimCLRModel(tf.keras.Model):
features
=
inputs
features
=
inputs
# Base network forward pass.
# 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
())]
features
=
endpoints
[
max
(
endpoints
.
keys
())]
projection_inputs
=
layers
.
GlobalAveragePooling2D
()(
features
)
projection_inputs
=
layers
.
GlobalAveragePooling2D
()(
features
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment