Closed PhyloStar closed 7 years ago
Any update? I can't run this either, but I get a different error:
Traceback (most recent call last):
File "model3.py", line 103, in get_output_shape_for
method of layer "lambda_1"" should return one shape tuple per output tensor of the layer. Found: [(None, 128), (None, 128)]
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
Hi,
I was testing the graph models and could not get to run the "mnist_siamese_graph.py" file in the examples folder. I did not get the same error when I used Keras 0.3.2.
Using Theano backend. Traceback (most recent call last): File "../mnist_siamese_graph.py", line 111, in
g.compile(loss={'output': contrastive_loss}, optimizer=rms)
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 1265, in compile
if self.outputs[self.output_order[0]].output_shape[-1] == 1:
TypeError: 'NoneType' object has no attribute 'getitem'