ruby-dnn 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dnn/core/layers.rb +3 -2
- data/lib/dnn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2197d74209bbc77661471244060d6d2081093db2905bb19c1d4c5c76d1a7ae9
|
|
4
|
+
data.tar.gz: 6b3d91a99743bacd4852dac9cf129834c0fe2f59b0692c4c6f97c3e067f33b58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 510e5b822ff38629fa64c1cdc67c640040d5183e1185b3e817f13969d8361d1ac28b8d889b8f89a0628f88568e4ec8c7233ca317c92cb67816afee96bad50634
|
|
7
|
+
data.tar.gz: b2bb5f3b6680ad50040bdcda794bbabea88c703ff386776f3d9fdc24555251535a5042f4ecfa1129e21b0c975288dbbdc3ad47384cb4c1c9e660237b20c2fa8d
|
data/lib/dnn/core/layers.rb
CHANGED
|
@@ -190,11 +190,12 @@ module DNN
|
|
|
190
190
|
|
|
191
191
|
def forward(x)
|
|
192
192
|
@x_shape = x.shape
|
|
193
|
-
x.reshape(*@shape)
|
|
193
|
+
x.reshape(x.shape[0], *@shape)
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
def backward(dout)
|
|
197
|
-
dout.
|
|
197
|
+
p dout.shape, @x_shape
|
|
198
|
+
dout.reshape(*@x_shape)
|
|
198
199
|
end
|
|
199
200
|
|
|
200
201
|
def to_hash
|
data/lib/dnn/version.rb
CHANGED