You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while trying something from the tutorial I noticed when defining the training data the code is:
-- ignore setmetatable for now, it is a feature beyond the scope of this tutorial. It sets the index operator.
setmetatable(trainset,
{__index = function(t, i)
return {t.data[i], t.label[i]}
end}
);
trainset.data = trainset.data:double() -- convert the data from a ByteTensor to a DoubleTensor.
function trainset:size()
return self.data:size(1)
end
but that crashes with an stackoverflow error if you try to acces size()
The text was updated successfully, but these errors were encountered:
while trying something from the tutorial I noticed when defining the training data the code is:
but that crashes with an stackoverflow error if you try to acces size()
The text was updated successfully, but these errors were encountered: