Error while calling eval() on Tensor variable in keras
问题 I am using keras and using a layer output for some modifications. Before, using the output ( a tensor variable ) I am converting it to numpy array and thus calling eval() on it, as below: def convert_output(orig_output): conv_output = invoke_modifications(orig_output.eval(), 8) The code fails with following error: File "<ipython-input-11-df86946997d5>", line 1, in <module> orig_output.eval() File "C:\ENV\p34\lib\site-packages\theano-0.9.0.dev4-py3.4.egg\theano\gof\graph.py", line 516, in eval