---------------------------------------------------------------------------
FailedPreconditionError Traceback (most recent call last)
<ipython-input-30-aef5cbeb8fbe> in <module>()
5 for i in range(1,50000):
6 batch = mnist.train.next_batch(batch_size)
----> 7 res = sess.run([train_op, loss, tau, mean_recons, mean_KL], {x : batch[0]})
8 if i % 100 == 1:
9 data.append([i] + res[1:])
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.pyc in run(self, fetches, feed_dict, options, run_metadata)
482 feed_dict=feed_dict,
483 options=options,
--> 484 run_metadata=run_metadata)
485
486 def should_stop(self):
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.pyc in run(self, fetches, feed_dict, options, run_metadata)
818 feed_dict=feed_dict,
819 options=options,
--> 820 run_metadata=run_metadata)
821 except _PREEMPTION_ERRORS as e:
822 logging.info('An error was raised. This may be due to a preemption in '
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.pyc in run(self, *args, **kwargs)
774
775 def run(self, *args, **kwargs):
--> 776 return self._sess.run(*args, **kwargs)
777
778
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.pyc in run(self, fetches, feed_dict, options, run_metadata)
928 feed_dict=feed_dict,
929 options=options,
--> 930 run_metadata=run_metadata)
931
932 for hook in self._hooks:
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.pyc in run(self, *args, **kwargs)
774
775 def run(self, *args, **kwargs):
--> 776 return self._sess.run(*args, **kwargs)
777
778
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in run(self, fetches, feed_dict, options, run_metadata)
776 try:
777 result = self._run(None, fetches, feed_dict, options_ptr,
--> 778 run_metadata_ptr)
779 if run_metadata:
780 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in _run(self, handle, fetches, feed_dict, options, run_metadata)
980 if final_fetches or final_targets:
981 results = self._do_run(handle, final_targets, final_fetches,
--> 982 feed_dict_string, options, run_metadata)
983 else:
984 results = []
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
1030 if handle is None:
1031 return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
-> 1032 target_list, options, run_metadata)
1033 else:
1034 return self._do_call(_prun_fn, self._session, handle, feed_dict,
/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/client/session.pyc in _do_call(self, fn, *args)
1050 except KeyError:
1051 pass
-> 1052 raise type(e)(node_def, op, message)
1053
1054 def _extend_graph(self):
FailedPreconditionError: Attempting to use uninitialized value Stack_2/fully_connected_1/weights
[[Node: Stack_2/fully_connected_1/weights/read = Identity[T=DT_FLOAT, _class=["loc:@Stack_2/fully_connected_1/weights"], _device="/job:localhost/replica:0/task:0/cpu:0"](Stack_2/fully_connected_1/weights)]]
Caused by op u'Stack_2/fully_connected_1/weights/read', defined at:
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel_launcher.py", line 16, in <module>
app.launch_new_instance()
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel/kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/zmq/eventloop/ioloop.py", line 177, in start
super(ZMQIOLoop, self).start()
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tornado/ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel/kernelbase.py", line 235, in dispatch_shell
handler(stream, idents, msg)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel/kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel/ipkernel.py", line 196, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/ipykernel/zmqshell.py", line 533, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2717, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2821, in run_ast_nodes
if self.run_code(code, result):
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-17-62162a5a4a58>", line 3, in <module>
net = slim.stack(net,slim.fully_connected,[512,256])
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1985, in stack
outputs = layer(outputs, *layer_args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1433, in fully_connected
outputs = layer.apply(inputs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 320, in apply
return self.__call__(inputs, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 286, in __call__
self.build(input_shapes[0])
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/layers/core.py", line 123, in build
trainable=True)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1049, in get_variable
use_resource=use_resource, custom_getter=custom_getter)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 948, in get_variable
use_resource=use_resource, custom_getter=custom_getter)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 349, in get_variable
validate_shape=validate_shape, use_resource=use_resource)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1389, in wrapped_custom_getter
*args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 275, in variable_getter
variable_getter=functools.partial(getter, **kwargs))
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 228, in _add_variable
trainable=trainable and self.trainable)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1334, in layer_variable_getter
return _model_variable_getter(getter, *args, **kwargs)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1326, in _model_variable_getter
custom_getter=getter, use_resource=use_resource)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 262, in model_variable
use_resource=use_resource)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 217, in variable
use_resource=use_resource)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 341, in _true_getter
use_resource=use_resource)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 714, in _get_single_variable
validate_shape=validate_shape)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 197, in __init__
expected_shape=expected_shape)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 316, in _init_from_args
self._snapshot = array_ops.identity(self._variable, name="read")
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1338, in identity
result = _op_def_lib.apply_op("Identity", input=input, name=name)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/export/mlrg/vthangar/anaconda2/envs/concrete-env/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
self._traceback = _extract_stack()
FailedPreconditionError (see above for traceback): Attempting to use uninitialized value Stack_2/fully_connected_1/weights
[[Node: Stack_2/fully_connected_1/weights/read = Identity[T=DT_FLOAT, _class=["loc:@Stack_2/fully_connected_1/weights"], _device="/job:localhost/replica:0/task:0/cpu:0"](Stack_2/fully_connected_1/weights)]]