TypeError: ‘TensorVariable’ object is not callable · Issue ...
github.com › keras-team › kerasJul 10, 2016 · 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 callable.
verify_grad function: 'TensorVariable' object is not callable
stackoverflow.com › questions › 32229486Aug 26, 2015 · 1. I'd like to use the verify_grad function, but I'm getting errors of the form "'TensorVariable' object is not callable". theano.gradient.verify_grad(fun, pt, n_tests=2, rng=None, eps=None, out_type=None, abs_tol=None, rel_tol=None, mode=None, cast_to_output_type=False) In the doc it says that fun is "a Python function that takes Theano variables as inputs, and returns a Theano variable.