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
9e5ec223
"scripts/convert_original_t2i_adapter.py" did not exist on "39299546134b545c1b78b0937147f85aed8fbe4d"
Commit
9e5ec223
authored
Apr 29, 2021
by
Scott Zhu
Committed by
A. Unique TensorFlower
Apr 29, 2021
Browse files
Internal change
PiperOrigin-RevId: 371197345
parent
fa9c975f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/utils/testing/mock_task.py
official/utils/testing/mock_task.py
+1
-1
No files found.
official/utils/testing/mock_task.py
View file @
9e5ec223
...
...
@@ -62,7 +62,7 @@ class MockTask(base_task.Task):
def
validation_step
(
self
,
inputs
,
model
:
tf
.
keras
.
Model
,
metrics
=
None
):
logs
=
super
().
validation_step
(
inputs
,
model
,
metrics
)
logs
[
"counter"
]
=
tf
.
on
es
((
1
,)
,
dtype
=
tf
.
float32
)
logs
[
"counter"
]
=
tf
.
c
on
stant
(
1
,
dtype
=
tf
.
float32
)
return
logs
def
build_inputs
(
self
,
params
):
...
...
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