TmacMai / ARGF_multimodal_fusion

codes for: Modality to Modality Translation: An Adversarial Representation Learning and Graph Fusion Network for Multimodal Fusion
47 stars 11 forks source link

Problems retaining graph #2

Open afonso-sousa opened 3 years ago

afonso-sousa commented 3 years ago

Hi. First of all, congratulations on your work. I am trying to run your code on the MOSI dataset, but I am getting an error with the gradients:

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [150, 150]], which is output 0 of TBackward, is at version 2; expected version 1 instead.

I have removed the inplace LeakyReLUs and don't find any other inplace operations. Do you have any insights on why this might be happening? I am using Python3 which probably is the issue but nevertheless, I would like to try your code in it.

TmacMai commented 3 years ago

Hi, you might change the code "a = a..." to "b = a...". Sorry for the late reply. I hope that it can work.

geek-APTX4869 commented 1 year ago

Hi, you might change the code "a = a..." to "b = a...". Sorry for the late reply. I hope that it can work.

Can you be more specific?