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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41b7dde05615d65bbc09fec893f67c0874a44aaff4dff8243c9ccdf97f5c9d7a
4
- data.tar.gz: fea5cb29b787d4cbbba18f34ab2f3f4e6275f8018ebda6c335c9f3564194b109
3
+ metadata.gz: 91a60f8ec7da64fb5cb69e872734e917ff5ffbb35574dd4a640b1e6739d3f505
4
+ data.tar.gz: d4b4e6c127c2f41aaa21bf30ba87a0c44989e94f2aec5a32f92e5d99f7947118
5
5
  SHA512:
6
- metadata.gz: c18e653840184c9590966b18f36a98a843cf2d1d6ced1159c071ca21839476e4d6f0b6b36bb5319414a50c430cef8a1dd66bedc0ab87d16602896dff6006bc2e
7
- data.tar.gz: ec7844e9a5bae664e8a5dd88d5684731c2a2bd3149c8131b8cbe606a9e10c30a68f7f8c4904644f931d2616cdc19dc345254934b792df4eb94117ab31c9b06f2
6
+ metadata.gz: 90800594f4937415ba25fa13678a9e788d187c6ae3d7eb21f9b8ab4e091d491a0bce4117a06e018378c354bf69a651974148015a70271e944ea992530128f366
7
+ data.tar.gz: 9eb5f4a99cf493784ff13a1a9e74ef6a6ef693e20c3a9d53e4c24780855225ec9383167c36897b5c03afad5b122b35df9642f4ce71bb61901ecea6311706d559
@@ -522,7 +522,13 @@ module DNN
522
522
  # Clean all layers.
523
523
  def clean_layers
524
524
  layers.each(&:clean)
525
- @loss_func.clean
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
 
@@ -1,3 +1,3 @@
1
1
  module DNN
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-dnn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - unagiootoro