Skip to content

Commit fe2446c

Browse files
committed
format
1 parent ede3364 commit fe2446c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/src/examples/custom-relu.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ m = Flux.Chain(
7676

7777
N = 1000 # batch size
7878
## Preprocessing train data
79-
imgs = MLDatasets.MNIST(split=:train).features[:,:,1:N]
80-
labels = MLDatasets.MNIST(split=:train).targets[1:N]
79+
imgs = MLDatasets.MNIST(; split = :train).features[:, :, 1:N]
80+
labels = MLDatasets.MNIST(; split = :train).targets[1:N]
8181
train_X = float.(reshape(imgs, size(imgs, 1) * size(imgs, 2), N)) # stack images
8282
train_Y = Flux.onehotbatch(labels, 0:9);
8383
## Preprocessing test data
84-
test_imgs = MLDatasets.MNIST(split=:test).features[:,:,1:N]
85-
test_labels = MLDatasets.MNIST(split=:test).targets[1:N];
84+
test_imgs = MLDatasets.MNIST(; split = :test).features[:, :, 1:N]
85+
test_labels = MLDatasets.MNIST(; split = :test).targets[1:N];
8686
test_X = float.(reshape(test_imgs, size(test_imgs, 1) * size(test_imgs, 2), N))
8787
test_Y = Flux.onehotbatch(test_labels, 0:9);
8888

docs/src/examples/polyhedral_project.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ m = Flux.Chain(
122122

123123
M = 500 # batch size
124124
## Preprocessing train data
125-
imgs = MLDatasets.MNIST(split=:train).features[:,:,1:M]
126-
labels = MLDatasets.MNIST(split=:train).targets[1:M]
125+
imgs = MLDatasets.MNIST(; split = :train).features[:, :, 1:M]
126+
labels = MLDatasets.MNIST(; split = :train).targets[1:M]
127127
train_X = float.(reshape(imgs, size(imgs, 1) * size(imgs, 2), M)) # stack images
128128
train_Y = Flux.onehotbatch(labels, 0:9);
129129
## Preprocessing test data
130-
test_imgs = MLDatasets.MNIST(split=:test).features[:,:,1:M]
131-
test_labels = MLDatasets.MNIST(split=:test).targets[1:M]
130+
test_imgs = MLDatasets.MNIST(; split = :test).features[:, :, 1:M]
131+
test_labels = MLDatasets.MNIST(; split = :test).targets[1:M]
132132
test_X = float.(reshape(test_imgs, size(test_imgs, 1) * size(test_imgs, 2), M))
133133
test_Y = Flux.onehotbatch(test_labels, 0:9);
134134

0 commit comments

Comments
 (0)