Relative Content

Tag Archive for pythontensorflowoptimizationneural-network

TensorFlow implementation of SPSA optimizer

I’m trying to implement SPSA(Simultaneous perturbation stochastic approximation) as a subclass of the optimizer class in TensorFlow. When I call loss in compute_gradients() method I get an error “TypeError: ‘Tensor’ object is not callable”. How can this be fixed?