Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transpose the shape of the initial model weights #3

Open
youssefoumate opened this issue Jun 15, 2017 · 0 comments
Open

Transpose the shape of the initial model weights #3

youssefoumate opened this issue Jun 15, 2017 · 0 comments

Comments

@youssefoumate
Copy link

Hello Hyeonseob,

self.layers[i][0].weight.data = torch.from_numpy(np.transpose(weight, (3,2,0,1)))

Could you please explain to me, why did you transpose the shape of weights in the line
of code above, is there a difference between the weights of the initial model and the model
which you implemented in Pytorch ?

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant