Skip to content

Commit

Permalink
fix tuple_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
hatappi committed May 29, 2018
1 parent c7bceed commit b331a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chainer/datasets/tuple_dataset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def [](index)
end
if index.kind_of?(Enumerable)
length = batches[0].shape[0]
length.times.map {|i| batches.map { |m| m[i] } }
length.times.map {|i| batches.map { |m| m.ndim > 1 ? m[i, false] : m[i] } }
else
batches
end
Expand Down

0 comments on commit b331a37

Please sign in to comment.