Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Miranda
deepOF
Commits
7e69c2f7
Commit
7e69c2f7
authored
Apr 27, 2021
by
lucas_miranda
Browse files
Added a MirroredStrategy to train models on multiple GPUs if they are available
parent
44e98b2c
Pipeline
#100314
passed with stages
in 32 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deepof/train_utils.py
View file @
7e69c2f7
...
...
@@ -326,7 +326,7 @@ def autoencoder_fitting(
X_val_dataset
=
(
tf
.
data
.
Dataset
.
from_tensor_slices
(
X_val
)
.
with_options
(
options
)
.
batch
(
batch_size
)
.
batch
(
batch_size
*
strategy
.
num_replicas_in_sync
)
)
# Defines what to log on tensorboard (useful for trying out different models)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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