Not able to load Graph from checkpoints


(Sawantilak) #1

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)

"


(Lissyx) #2

Are you getting that using our codebase? You need to make sure you have libctc_decoder_with_kenlm.so properly reachable, as this is the shared object that holds that op CTCBeamSearchDecoderWithLM.