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
eaa4003c
Commit
eaa4003c
authored
Nov 19, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Nov 19, 2021
Browse files
Internal change
PiperOrigin-RevId: 411096556
parent
19e3d234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/core/base_trainer.py
official/core/base_trainer.py
+4
-1
No files found.
official/core/base_trainer.py
View file @
eaa4003c
...
...
@@ -403,7 +403,10 @@ class Trainer(_AsyncTrainer):
"""See base class."""
def
step_fn
(
inputs
):
task_train_step
=
self
.
task
.
train_step
if
self
.
config
.
runtime
.
enable_xla
and
(
self
.
config
.
runtime
.
num_gpus
>
0
):
task_train_step
=
tf
.
function
(
self
.
task
.
train_step
,
jit_compile
=
True
)
else
:
task_train_step
=
self
.
task
.
train_step
logs
=
task_train_step
(
inputs
,
model
=
self
.
model
,
...
...
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