Closed jundengdeng closed 8 years ago
There may be a small bug when tensors is the input to Dataset. The following code should work if I didn't misunderstand the code. But it didn't work as expected.
DS = require 'dataset.Dataset' dataset = DS({x=torch.randn(100, 9),y=torch.randn(100)}) print(dataset.index)
If the code above is corrected as follows, then it works.
DS = require 'dataset.Dataset' dataset = DS({{x=torch.randn(100, 9),y=torch.randn(100)}}) print(dataset.index)
Could you please correct the bug? Thanks!
Jun
Thanks for reporting this, it should be fixed now.
There may be a small bug when tensors is the input to Dataset. The following code should work if I didn't misunderstand the code. But it didn't work as expected.
If the code above is corrected as follows, then it works.
Could you please correct the bug? Thanks!
Jun