Thanks for replying
First of all i thought its not recommended to use .data in our code.
Second, sorry i didn’t understand what that offset is supposed to do. could you explain more?
in my scenario i have 10 clients or node and each one of them have their own model with the same architecture. my code works when i update client models layer by layer with the code below

model_dict[name_of_models[i]].conv1.weight.data = main_model.conv1.weight.detach().clone())

as i heard that .data attribute can cause silent error in my code, i’m looking for some alternate way to do it.