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
ecbc3fd8
Commit
ecbc3fd8
authored
Apr 12, 2021
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 368040234
parent
6f917c69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/vision/beta/modeling/classification_model.py
official/vision/beta/modeling/classification_model.py
+1
-1
No files found.
official/vision/beta/modeling/classification_model.py
View file @
ecbc3fd8
...
@@ -65,7 +65,7 @@ class ClassificationModel(tf.keras.Model):
...
@@ -65,7 +65,7 @@ class ClassificationModel(tf.keras.Model):
norm
=
tf
.
keras
.
layers
.
BatchNormalization
norm
=
tf
.
keras
.
layers
.
BatchNormalization
axis
=
-
1
if
tf
.
keras
.
backend
.
image_data_format
()
==
'channels_last'
else
1
axis
=
-
1
if
tf
.
keras
.
backend
.
image_data_format
()
==
'channels_last'
else
1
inputs
=
tf
.
keras
.
Input
(
shape
=
input_specs
.
shape
[
1
:])
inputs
=
tf
.
keras
.
Input
(
shape
=
input_specs
.
shape
[
1
:]
,
name
=
input_specs
.
name
)
endpoints
=
backbone
(
inputs
)
endpoints
=
backbone
(
inputs
)
x
=
endpoints
[
max
(
endpoints
.
keys
())]
x
=
endpoints
[
max
(
endpoints
.
keys
())]
...
...
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