Hello,
The requirement is :
create initialization(w0,b0)<–init()
i need to use the same weight for online model and global model at first epoch and need to do self update of weight and bias…
I have done following but its not working…please support me …
I have done the initilization by following code,
def init_normal(m):
if type(m) == nn.Linear:
nn.init.kaiming_uniform_(m.weight)
if m.bias is not None:
nn.init.constant_(m.bias.data, 0.001)
Now i want to initilize weight and bias generated by the above function.i had traied with
model1=copy.deepcopy()
when i call the model1,the weight and bias is not updated…