lib/torch/utils/data/data_loader.rb in torch-rb-0.9.0 vs lib/torch/utils/data/data_loader.rb in torch-rb-0.9.1
- old
+ new
@@ -27,10 +27,10 @@
def each
return to_enum(:each) unless block_given?
# try to keep the random number generator in sync with Python
# this makes it easy to compare results
- base_seed = Torch.empty([], dtype: :int64).random!.item
+ _base_seed = Torch.empty([], dtype: :int64).random!.item
indexes =
if @shuffle
Torch.randperm(@dataset.size).to_a
else