Closed PascalIversen closed 2 years ago
Hi,
The 'cell_line' entry in the dictionary should not exist in 0.7.1 version. I suggest you delete all the lines with:
h2 = {k: F.leaky_relu(v + self.alpha*h1[k]) for k, v in h2.items()}
and replace it with:
h2['drug'] = F.leaky_relu(h2['drug'] + self.alpha*h1['drug'])
in the model.py
great, that works, thanks!
Hi again :) I am running
python main.py --mode=train --dataroot=.\
and I am getting the error:I guess in
self.blocks = [b.to(self.device) for b in graph_sampler.sample_blocks(self.network, {'drug': range(len(drug_feats))})]
I need to cast the range to a tensor as:torch.tensor(list(range(len(drug_feats))))
.However, running this gives me:
Seems like the cell_line tensor in
h2
in theforward()
afterh2 = self.conv2(blocks[1], h1)
ofBiGDRP
is empty:(This is not the case for
h1
.) Any idea what could be the issue here? I run the code with your data and my dgl version is '0.7.2' since '0.7.1' is not available for cuda 11.4. but I guess that should not make any difference.Thanks!