ruby-dnn 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dnn/core/models.rb +7 -1
- 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: 91a60f8ec7da64fb5cb69e872734e917ff5ffbb35574dd4a640b1e6739d3f505
|
4
|
+
data.tar.gz: d4b4e6c127c2f41aaa21bf30ba87a0c44989e94f2aec5a32f92e5d99f7947118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90800594f4937415ba25fa13678a9e788d187c6ae3d7eb21f9b8ab4e091d491a0bce4117a06e018378c354bf69a651974148015a70271e944ea992530128f366
|
7
|
+
data.tar.gz: 9eb5f4a99cf493784ff13a1a9e74ef6a6ef693e20c3a9d53e4c24780855225ec9383167c36897b5c03afad5b122b35df9642f4ce71bb61901ecea6311706d559
|
data/lib/dnn/core/models.rb
CHANGED
@@ -522,7 +522,13 @@ module DNN
|
|
522
522
|
# Clean all layers.
|
523
523
|
def clean_layers
|
524
524
|
layers.each(&:clean)
|
525
|
-
@loss_func.
|
525
|
+
if @loss_func.is_a?(Array)
|
526
|
+
@loss_func.each do |lf|
|
527
|
+
lf.clean
|
528
|
+
end
|
529
|
+
else
|
530
|
+
@loss_func.clean
|
531
|
+
end
|
526
532
|
@layers_cache = nil
|
527
533
|
end
|
528
534
|
|
data/lib/dnn/version.rb
CHANGED