I am trying to load the graph from checkpoints directory using the code below. But on the line where I am trying to import_meta_graph, it gives this error “ValueError: No op named CTCBeamSearchDecoderWithLM in defined operations.”
Can some one please help me understand why am I getting this error?
"checkpoint = tf.train.get_checkpoint_state(check_dir)
checkpoint_path = checkpoint.model_checkpoint_path
with tf.Session(graph=tf.Graph()) as sess:
**saver = tf.train.import_meta_graph(checkpoint_path + '.meta', clear_devices=True)**
saver.restore(sess, checkpoint_path)
print 'Restored checkpoint at training epoch %d' % (int(checkpoint_path.split('-')[-1]) + 1)
"