flattened_arguments, function)
if len(flattened_arguments) == 1:
return compiled_function
return unpack_arguments(compiled_function)
@Backend._assert_backend_available
def compute_gradient(self, function, arguments):
Returns a compiled function computing the gradient of `function`
After Change
@Backend._assert_backend_available
def compile_function(self, function, arguments):
Compiles a Theano graph into a callable.
return self._compile_function_without_warnings(arguments, function)
@Backend._assert_backend_available
def compute_gradient(self, function, arguments):
Returns a compiled function computing the gradient of ``function``