tf.trainable_variables() returns blank list outside model_fn
This problem is resolved... tensorflow.python.framework.errors_impl.NotFoundError: Key output_bias not found in checkpoint – Actually there were model.ckpt-10949 files.. and tensorflow was picking up this checkpoint automatically... these files seem to be incomplete or corrupt. After deleting 1model.ckpt-10949* files key NotFoundError went away