Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docs.it4i.cz
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
docs.it4i.cz
Commits
a91a6400
Commit
a91a6400
authored
2 years ago
by
Jan Siwiec
Browse files
Options
Downloads
Plain Diff
Merge branch 'tf-typo' into 'master'
Fix typo in TF docs See merge request
!416
parents
51870c71
445ec57b
No related branches found
No related tags found
1 merge request
!416
Fix typo in TF docs
Pipeline
#29174
passed with warnings
2 years ago
Stage: test
Stage: build
Stage: deploy
Stage: after_test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs.it4i/software/machine-learning/tensorflow.md
+1
-1
1 addition, 1 deletion
docs.it4i/software/machine-learning/tensorflow.md
with
1 addition
and
1 deletion
docs.it4i/software/machine-learning/tensorflow.md
+
1
−
1
View file @
a91a6400
...
@@ -112,7 +112,7 @@ train_dataset = mnist_train.map(scale).cache().shuffle(BUFFER_SIZE).batch(BATCH_
...
@@ -112,7 +112,7 @@ train_dataset = mnist_train.map(scale).cache().shuffle(BUFFER_SIZE).batch(BATCH_
eval_dataset
=
mnist_test
.
map
(
scale
).
batch
(
BATCH_SIZE
)
eval_dataset
=
mnist_test
.
map
(
scale
).
batch
(
BATCH_SIZE
)
# The following line makes sure that the model will run on multiple GPUs (if they are available)
# The following line makes sure that the model will run on multiple GPUs (if they are available)
# Without `strategy.scop
y
()`, the model would only be trained on a single GPU
# Without `strategy.scop
e
()`, the model would only be trained on a single GPU
with
strategy
.
scope
():
with
strategy
.
scope
():
model
=
tf
.
keras
.
Sequential
([
model
=
tf
.
keras
.
Sequential
([
tf
.
keras
.
layers
.
Conv2D
(
32
,
3
,
activation
=
'
relu
'
,
input_shape
=
(
28
,
28
,
1
)),
tf
.
keras
.
layers
.
Conv2D
(
32
,
3
,
activation
=
'
relu
'
,
input_shape
=
(
28
,
28
,
1
)),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment