text_gcn.pytorch
text_gcn.pytorch copied to clipboard
TypeError: cuda() missing 1 required positional argument: 'self'
when i run python train.py mr, error reporting
Traceback (most recent call last):
File "train.py", line 82, in
do you deal with it?
when i run python train.py R8, error reporting
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=157 error=711 : peer mapping resources exhausted
Traceback (most recent call last):
File "train.py", line 152, in
when i run python train.py mr, error reporting Traceback (most recent call last): File "train.py", line 82, in model_func = model_func.cuda() TypeError: cuda() missing 1 required positional argument: 'self' Do you know how to solve the error?
I am facing the same issue. But for now I have commented the following section in train.py file so I could try the code.
''' if torch.cuda.is_available(): model_func = model_func.cuda() t_features = t_features.cuda() t_y_train = t_y_train.cuda() t_y_val = t_y_val.cuda() t_y_test = t_y_test.cuda() t_train_mask = t_train_mask.cuda() tm_train_mask = tm_train_mask.cuda() for i in range(len(support)): t_support = [t.cuda() for t in t_support if True] '''
It is from line 82-93.
I have the same problem
(D:\Anaconda3\envs\gcnPytorch) D:\PycharmProjects\text_gcn.pytorch-master>python train.py R8
Traceback (most recent call last):
File "train.py", line 81, in
Go to train.py file and comment the following section and then execute the code again. ''' if torch.cuda.is_available(): model_func = model_func.cuda() t_features = t_features.cuda() t_y_train = t_y_train.cuda() t_y_val = t_y_val.cuda() t_y_test = t_y_test.cuda() t_train_mask = t_train_mask.cuda() tm_train_mask = tm_train_mask.cuda() for i in range(len(support)): t_support = [t.cuda() for t in t_support if True] '''