Is there some function that allows backprop when accessing the parameters directly?
One workaround is to access the protected members _parameters and _modules directly
For example
c._modules['linear_layers'][0]._parameters['weight'] = weight * a._modules['linear_layers'][0]._parameters['weight'] + (1-weight) * b._modules['linear_layers'][0]._parameters['weight']