Skip to content

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

@deeksha004

Description

@deeksha004
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions