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

build_graph() does not return #90

Open
buttercutter opened this issue Sep 19, 2021 · 2 comments
Open

build_graph() does not return #90

buttercutter opened this issue Sep 19, 2021 · 2 comments

Comments

@buttercutter
Copy link

I tried to use hiddenlayer on this network architecture search coding for the following search architecture, however the code could not exit and is inside build_graph() forever.

image

@buttercutter
Copy link
Author

I used this hl.build_graph(graph(train_inputs), torch.zeros([1, 3, 32, 32]).cuda()) instead and hiddenlayer gave me the following error:

Traceback (most recent call last):
  File "/home/phung/PycharmProjects/beginner_tutorial/gdas.py", line 793, in <module>
    ltrain = train_NN(forward_pass_only=0)
  File "/home/phung/PycharmProjects/beginner_tutorial/gdas.py", line 429, in train_NN
    hl.build_graph(graph(train_inputs), torch.zeros([1, 3, 32, 32]).cuda())
  File "/usr/lib/python3.9/site-packages/hiddenlayer/graph.py", line 148, in build_graph
    raise ValueError("`model` input param must be a PyTorch, TensorFlow, or Keras-with-TensorFlow-backend model.") 
ValueError: `model` input param must be a PyTorch, TensorFlow, or Keras-with-TensorFlow-backend model.

@dasdristanta13
Copy link

I think within the graph() you should not pass the train_inputs. Try without giving the train_inputs, i.e, try this instead,
hl.build_graph(graph(), torch.zeros([1, 3, 32, 32]).cuda())

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