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

how can i get all the parameters of one layer #12

Open
GeorgeBohw opened this issue Jun 6, 2018 · 1 comment
Open

how can i get all the parameters of one layer #12

GeorgeBohw opened this issue Jun 6, 2018 · 1 comment

Comments

@GeorgeBohw
Copy link

No description provided.

@GeorgeBohw
Copy link
Author

GeorgeBohw commented Jun 6, 2018

Now i use "pytorch2caffe" to convert to my model.
When it convert "torch.cat",it tell me the message as following:
AttributeError: 'CatBackward' object has no attribute 'dim'
I check it in pytorch ,actually it has this parameter:
torch.cat(seq, dim=0, out=None)

So I wonder what kind of parameters "output_var.grad_fn" take....

In pytorch2prototxt(),for the convolution layer,you can get parameters in this way:
func.padding[0]
func.stride[0]

If I want to see all the parameters of convolution layer,how should i do?

Itry "print func",it's not right;If try "print func.padding[0]",it's ok!

Now for a new layer which i don't know what kind of parameters it takes,how can i print all the parameters?

Thanks for it.

@GeorgeBohw GeorgeBohw changed the title how how can i get all the parameters of one layer Jun 7, 2018
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