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

The following problems occurred when running "cd src/hbp -> python main.py -c hb19.yaml" Would you please help me? Thank you very much. #8

Open
deeksha004 opened this issue Jan 5, 2021 · 0 comments

Comments

@deeksha004
Copy link

Traceback (most recent call last):
  File "main.py", line 110, in <module>
    my_callback = main(sys.argv[1:], 0)
  File "main.py", line 99, in main
    model.compile(optimizer = optim, loss = loss_dict, hedge = config['hedge'],loss_weights = loss_weights, metrics = ['accuracy'])
  File "/home/tyan/.local/lib/python2.7/site-packages/keras/engine/training.py", line 684, in compile
    total_loss = K.sum(K.dot(self.holder, self.metrics_tensors))
  File "/home/tyan/.local/lib/python2.7/site-packages/keras/backend/theano_backend.py", line 238, in dot
    if is_sparse(x):
  File "/home/tyan/.local/lib/python2.7/site-packages/keras/backend/theano_backend.py", line 49, in is_sparse
    return th_sparse_module and isinstance(tensor.type, th_sparse_module.SparseType)
AttributeError: 'list' object has no attribute 'type'
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