ReCU
ReCU copied to clipboard
evaluation error
During evaluation i get following errors
Traceback (most recent call last):
File "/home/ahmsoy00/Projects/DATE23_Invited_Variational_Bayes/classification/CIFAR-10/ReCU/main.py", line 319, in
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.
I SoyedTuhinAhmed,
As the RuntimeError said, you must change .view()
by .reshape()
, you can apply the following change:
correct_k = correct[:k].reshape(-1).float().sum(0)