Hi,
I tried to find more information on
def weight_reset(m):
    if isinstance(m, conv1D):
        m.reset_parameters()
model.apply(weight_reset)

but I couldn’t find any documentation on that. What exactly is happening(will the model weights revert to definition weights?) and how is it different from weight init function on all layers?
def weight_init(m):
    if isinstance(m, conv1D)
        nn.init.xavier_uniform_(m.weight)
model.apply(weight_init)