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

What is number input for visulizer model? #27

Closed
tphankr opened this issue Feb 18, 2019 · 1 comment
Closed

What is number input for visulizer model? #27

tphankr opened this issue Feb 18, 2019 · 1 comment

Comments

@tphankr
Copy link

tphankr commented Feb 18, 2019

I run this code in Jupyter Notebook,but one error occurs:
`import torch
import torchvision.models
import hidden layer as hl
model = torchvision.models.vgg16()
hl.build_graph(model, torch.zeros([1, 3, 224, 224]))'

And now, I want to feed three inputs are [ 32,6, 25, 25] [ 32,6, 51, 51],[32, 6, 75, 75]. I wrote : hl.build_graph(net, torch.zeros(
[ 32,6, 25, 25],
[ 32,6, 51, 51],
[32, 6, 75, 75]
)

But my code had the error: TypeError: zeros(): argument 'out' (position 2) must be Tensor, not list.
How do I fix this problem? (I also tried many ways, ex:
#hl.build_graph(net, torch.zeros( 32,6, 25, 25), torch.zeros(32, 6, 51, 51), torch.zeros(32, 6, 75, 75))
#hl.build_graph(net, torch.zeros(( 32,6, 25, 25), ( 32,6, 51, 51), ( 32,6, 75, 75)))
#hl.build_graph(net, torch.zeros([( 32,6, 25, 25)],[( 32,6, 51, 51)],[( 32,6, 75, 75)])
)

Thank you.

@waleedka
Copy link
Owner

waleedka commented Mar 4, 2019

Closing this because you already solved it in another thread.

@waleedka waleedka closed this as completed Mar 4, 2019
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

2 participants