Skip to content

Optimize MPNCOV.py for less memory usage and faster inference#29

Open
csmliu wants to merge 2 commits into
daitao:masterfrom
csmliu:patch-1
Open

Optimize MPNCOV.py for less memory usage and faster inference#29
csmliu wants to merge 2 commits into
daitao:masterfrom
csmliu:patch-1

Conversation

@csmliu

@csmliu csmliu commented Feb 26, 2020

Copy link
Copy Markdown

I am going to compare your method in my paper, and am now generating your results using the released model.
According to #22, I modified the code for a faster inference and less memory usage. Kindly have a check.

Since I_hat is not a three-dimensioni tensor now, the bmm in the backward function should be replaced by @ as well
@aryan-f

aryan-f commented Sep 11, 2020

Copy link
Copy Markdown

Could not train the model after this modification. Torch 0.4 did not have a diagnol method defined for Tensors, and working around it usingtorch.diagnol(tensor) causes the loss to jump to infinity.

@ZFhuang

ZFhuang commented Jul 4, 2021

Copy link
Copy Markdown

Nice commit, saves a lot of memory.

@antonelse

Copy link
Copy Markdown

the problem still exist ! Does anyone knows where is the problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants