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

module 'torch.onnx' has no attribute 'OperatorExportTypes' #9

Closed
geekac opened this issue Nov 7, 2018 · 0 comments
Closed

module 'torch.onnx' has no attribute 'OperatorExportTypes' #9

geekac opened this issue Nov 7, 2018 · 0 comments

Comments

@geekac
Copy link

geekac commented Nov 7, 2018

I run this code in Jupyter Notebook,but one error occurs:
`import torch
import torchvision.models
import hiddenlayer as hl

VGG16 with BatchNorm

model = torchvision.models.vgg16()

Build HiddenLayer graph

Jupyter Notebook renders it automatically

hl.build_graph(model, torch.zeros([1, 3, 224, 224]))`

AttributeError: module 'torch.onnx' has no attribute 'OperatorExportTypes'

And I run the code under Ubuntu16.04, pytorch 0.4.0

@geekac geekac closed this as completed Nov 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