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
Namespace(affine=False, batch=8, img_size=128, iter=200000, lr=0.0001, n_bits=5, n_block=4, n_flow=32, n_sample=20, no_lu=False, path='../train/', temp=0.7)
/workspace/glow-pytorch/model.py:102: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /opt/conda/conda-bld/pytorch_1603729096996/work/torch/csrc/utils/tensor_numpy.cpp:141.)
w_s = torch.from_numpy(w_s)
Loss: 2.15042; logP: -2.13823; logdet: 4.98781; lr: 0.0001000: 0%| | 1/200000
Traceback (most recent call last):
File "train.py", line 177, in <module>
train(args, model, optimizer)
File "train.py", line 148, in train
model_single.reverse(z_sample).cpu().data,
File "/workspace/glow-pytorch/model.py", line 367, in reverse
input = block.reverse(z_list[-1], z_list[-1], reconstruct=reconstruct)
File "/workspace/glow-pytorch/model.py", line 322, in reverse
input = flow.reverse(input)
File "/workspace/glow-pytorch/model.py", line 239, in reverse
input = self.invconv.reverse(input)
File "/workspace/glow-pytorch/model.py", line 136, in reverse
return F.conv2d(output, weight.squeeze().inverse().unsqueeze(2).unsqueeze(3))
RuntimeError: cusolver error: 7, when calling `cusolverDnCreate(handle)`
EXTRA:
This bug happens when doing reverse calculation when i % 100 == 0. I changed it to i == 1 to faster the bug reproduction.
And, changing w_s = torch.from_numpy(w_s) to w_s = torch.from_numpy(w_s.copy()) turn offs all warnings above. But the error still occurs.
The text was updated successfully, but these errors were encountered:
What I run
SPEC
2 x RTX2080 ti
Two cards or one card does not change the error.
CODE
Latest.
ENVIRONMENT
ERROR MESSAGE:
EXTRA:
This bug happens when doing reverse calculation when
i % 100 == 0
. I changed it toi == 1
to faster the bug reproduction.And, changing
w_s = torch.from_numpy(w_s)
tow_s = torch.from_numpy(w_s.copy())
turn offs all warnings above. But the error still occurs.The text was updated successfully, but these errors were encountered: