1455 else:
1456 ins = x + y + sample_weights
-> 1457 self._make_train_function()
1458 f = self.train_function
1459
/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/engine/training.pyc in _make_train_function(self)
1005 [self.total_loss] + self.metrics_tensors,
1006 updates=updates,
-> 1007 **self._function_kwargs)
1008
1009 def _make_test_function(self):
/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/backend/theano_backend.pyc in function(inputs, outputs, updates, **kwargs)
1102 msg = 'Invalid argument "%s" passed to K.function' % key
1103 raise ValueError(msg)
-> 1104 return Function(inputs, outputs, updates=updates, **kwargs)
1105
1106
/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/backend/theano_backend.pyc in __init__(self, inputs, outputs, updates, **kwargs)
1088 allow_input_downcast=True,
1089 on_unused_input='ignore',
-> 1090 **kwargs)
1091
1092 def __call__(self, inputs):
/home/annika/.local/lib/python2.7/site-packages/theano/compile/function.pyc in function(inputs, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input)
324 on_unused_input=on_unused_input,
325 profile=profile,
--> 326 output_keys=output_keys)
327 # We need to add the flag check_aliased inputs if we have any mutable or
328 # borrowed used defined inputs
/home/annika/.local/lib/python2.7/site-packages/theano/compile/pfunc.pyc in pfunc(params, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input, output_keys)
484 accept_inplace=accept_inplace, name=name,
485 profile=profile, on_unused_input=on_unused_input,
--> 486 output_keys=output_keys)
487
488
/home/annika/.local/lib/python2.7/site-packages/theano/compile/function_module.pyc in orig_function(inputs, outputs, mode, accept_inplace, name, profile, on_unused_input, output_keys)
1792 profile=profile,
1793 on_unused_input=on_unused_input,
-> 1794 output_keys=output_keys).create(
1795 defaults)
1796
/home/annika/.local/lib/python2.7/site-packages/theano/compile/function_module.pyc in __init__(self, inputs, outputs, mode, accept_inplace, function_builder, profile, on_unused_input, fgraph, output_keys)
1444 # OUTPUT VARIABLES)
1445 fgraph, additional_outputs = std_fgraph(inputs, outputs,
-> 1446 accept_inplace)
1447 fgraph.profile = profile
1448 else:
/home/annika/.local/lib/python2.7/site-packages/theano/compile/function_module.pyc in std_fgraph(input_specs, output_specs, accept_inplace)
175
176 fgraph = gof.fg.FunctionGraph(orig_inputs, orig_outputs,
--> 177 update_mapping=update_mapping)
178
179 for node in fgraph.apply_nodes:
/home/annika/.local/lib/python2.7/site-packages/theano/gof/fg.pyc in __init__(self, inputs, outputs, features, clone, update_mapping)
178
179 for output in outputs:
--> 180 self.__import_r__(output, reason="init")
181 for i, output in enumerate(outputs):
182 output.clients.append(('output', i))
/home/annika/.local/lib/python2.7/site-packages/theano/gof/fg.pyc in __import_r__(self, variable, reason)
349 # Imports the owners of the variables
350 if variable.owner and variable.owner not in self.apply_nodes:
--> 351 self.__import__(variable.owner, reason=reason)
352 elif (variable.owner is None and
353 not isinstance(variable, graph.Constant) and
/home/annika/.local/lib/python2.7/site-packages/theano/gof/fg.pyc in __import__(self, apply_node, check, reason)
395 % (node.inputs.index(r), str(node)))
396 error_msg += get_variable_trace_string(r)
--> 397 raise MissingInputError(error_msg, variable=r)
398
399 for node in new_nodes:
MissingInputError: Input 0 of the graph (indices start from 0), used to compute AbstractConv2d{convdim=2, border_mode='valid', subsample=(2, 2), filter_flip=True, imshp=(None, 3, 299, 299), kshp=(32, 3, 3, 3), filter_dilation=(1, 1)}(/test_input, InplaceDimShuffle{3,2,0,1}.0), was not provided and not given a value. Use the Theano flag exception_verbosity='high', for more information on this error.
Backtrace when that variable is created:
File "/usr/local/lib/python2.7/dist-packages/ipykernel/zmqshell.py", line 501, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2717, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2821, in run_ast_nodes
if self.run_code(code, result):
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-ffe58377976c>", line 22, in <module>
input_tensor = Input(shape=input_shape,name='test_input')
File "/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 1388, in Input
input_tensor=tensor)
File "/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 1299, in __init__
name=self.name)
File "/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/backend/theano_backend.py", line 184, in placeholder
x = T.TensorType(dtype, broadcast)(name)
Backtrace when the variable is created:
File "/usr/local/lib/python2.7/dist-packages/ipykernel/zmqshell.py", line 501, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2717, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2821, in run_ast_nodes
if self.run_code(code, result):
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-ffe58377976c>", line 22, in <module>
input_tensor = Input(shape=input_shape,name='test_input')
File "/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 1388, in Input
input_tensor=tensor)
File "/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 1299, in __init__
name=self.name)
File "/usr/local/lib/python2.7/dist-packages/Keras-2.0.1-py2.7.egg/keras/backend/theano_backend.py", line 184, in placeholder
x = T.TensorType(dtype, broadcast)(name)