johnjwatson
johnjwatson
Hi @XiaoXYe thank you VERY much for this, but I fail to understand what I should change in `rename_BatchNorm` function? As I mentioned in the parent post, I did change...
@XiaoXYe I just reread your comment - do you mean to say that all I need to change is in function `rename_FullyConnected`? May I please ask what you have changed...
OMG @XiaoXYe that solved it - well, I have the model pth and the .py file - Thanks a tonne!!!!
@XiaoXYe I have a follow up question. So, I have the pytorch.py pytorch file and pytorch.pth fileand I am trying to test this but I get: ``` File "pytorch.py", line...
@XiaoXYe I thought the same as you and I see that it is defined this way: ``` import numpy as np import torch import torch.nn as nn import torch.nn.functional as...
@XiaoXYe I think there is a bug with the double underscores of `__weights_dict`. Due to python name mangling (please see: https://stackoverflow.com/questions/62810436/global-variable-although-defined-errors-out-as-not-defined-in-python), it should be a single underscore. So, when I...
@XiaoXYe yea, the guy on stack (maxfischer) was kind enough to make the PR. I tried your steps and yes, it works!!! many thanks for being so responsive. REALLY appreciate...