I'm following this tutorial. The code version I currently have can be found here.
When I try to run the code, I get the following:
Using Theano backend.
Traceback (most recent call last):
File “hypercolumn.py”, line 85, in
get_feature = theano.function([model.layers[0].input], model.layers[3].output(train=False), allow_input_downcast=False)
TypeError: ‘TensorVariable’ object is not callableHow can I solve this issue?
Thanks.
model.layers[3].output(train=False)model.layers[3].output
--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/b2c2f24d-bb54-4436-9732-fa191d719e82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
get_feature = theano.function([model.layers[0].input], model.layers[3].output, allow_input_downcast=False)
Using Theano backend.
Traceback (most recent call last):
File "hypercolumn.py", line 104, in <module>
hc = extract_hypercolumn(model, layers_extract, im)
File "hypercolumn.py", line 90, in extract_hypercolumn
layers = [model.layers[li].output(train=False) for li in layer_indexes]
TypeError: 'TensorVariable' object is not callable