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

Model compilation fails #5

Open
Pooventhiran opened this issue Sep 28, 2020 · 0 comments
Open

Model compilation fails #5

Pooventhiran opened this issue Sep 28, 2020 · 0 comments

Comments

@Pooventhiran
Copy link

Hi,

I am trying to run this project to explore DCCA. But model.compile() fails with the following error.

Traceback (most recent call last):
  File "dcca.py", line 73, in <module>
    model.compile(optimizer='rmsprop', loss=constant_loss) #, metrics=[mean_pred])
  File "/home/psg/anaconda3/lib/python3.7/site-packages/keras/engine/training.py", line 211, in compile
    self._cache_output_metric_attributes(metrics, weighted_metrics)
  File "/home/psg/anaconda3/lib/python3.7/site-packages/keras/engine/training.py", line 736, in _cache_output_metric_attributes
    output_shapes.append(list(output.shape))
  File "/home/psg/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 838, in __iter__
    raise ValueError("Cannot iterate over a shape with unknown rank.")
ValueError: Cannot iterate over a shape with unknown rank.

I am not able to identify the issue.

Python: 3.7.3
Tensorflow: 1.14.0
Keras: 2.3.1
OS: Ubuntu 18.04

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