doc2graph
doc2graph copied to clipboard
Doc2Graph transforms documents into graphs and exploit a GNN to solve several tasks.
When I set train_batch_size=1, I got this error. It happen in ``` n_loss = compute_crossentropy_loss(n_scores.to(device), tg.ndata['label'].to(device)) ==> def compute_crossentropy_loss(scores: torch.Tensor, labels: torch.Tensor): w = class_weight.compute_class_weight(class_weight='balanced', classes=np.unique(labels.cpu().numpy()), y=labels.cpu().numpy()) return torch.nn.CrossEntropyLoss(weight=torch.tensor(w, dtype=torch.float32).to('cuda:0'))(scores,...
As the title says 👍 Curious what I need to change as I keep running into run-time errors: RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is...
I get some conflicts where I can't run the main.py script. ``` ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour...