Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[EXAMPLE] Fix MNIST classification example #19072

Merged
merged 1 commit into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ List of Contributors
* [Connor Goggins](https://github.com/connorgoggins)
* [Wei Chu](https://github.com/waytrue17)
* [Joe Evans](https://github.com/josephevans)
* [Nikolay Ulmasov](https://github.com/r3stl355)

Label Bot
---------
Expand Down
7 changes: 3 additions & 4 deletions example/gluon/mnist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ This script shows a simple example how to do image classification with Gluon.
The model is trained on MNIST digits image dataset and the goal is to classify the digits ```0-9```. The model has the following layout:
```
net = nn.Sequential()
with net.name_scope():
net.add(nn.Dense(128, activation='relu'))
net.add(nn.Dense(64, activation='relu'))
net.add(nn.Dense(10))
net.add(nn.Dense(128, activation='relu'))
net.add(nn.Dense(64, activation='relu'))
net.add(nn.Dense(10))
```

The script provides the following commandline arguments:
Expand Down
7 changes: 3 additions & 4 deletions example/gluon/mnist/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@
# define network

net = nn.Sequential()
with net.name_scope():
net.add(nn.Dense(128, activation='relu'))
net.add(nn.Dense(64, activation='relu'))
net.add(nn.Dense(10))
net.add(nn.Dense(128, activation='relu'))
net.add(nn.Dense(64, activation='relu'))
net.add(nn.Dense(10))

# data

Expand Down