i ran this for trying to import meta file from latest release:
saver = tf.train.import_meta_graph(‘model.ckpt-97999.meta’)
and i got this error:
KeyError Traceback (most recent call last)
in ()
----> 1 saver = tf.train.import_meta_graph(‘model.ckpt-97999.meta’)
/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py in import_meta_graph(meta_graph_or_file, clear_devices, import_scope, **kwargs)
1836 clear_devices=clear_devices,
1837 import_scope=import_scope,
-> 1838 **kwargs)
1839 if meta_graph_def.HasField(“saver_def”):
1840 return Saver(saver_def=meta_graph_def.saver_def, name=import_scope)
/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/meta_graph.py in import_scoped_meta_graph(meta_graph_or_file, clear_devices, graph, import_scope, input_map, unbound_inputs_col_name, restore_collections_predicate)
658 importer.import_graph_def(
659 input_graph_def, name=(import_scope or “”), input_map=input_map,
–> 660 producer_op_list=producer_op_list)
661
662 scope_to_prepend_to_names = “/”.join(
/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs)
314 ‘in a future version’ if date is None else (‘after %s’ % date),
315 instructions)
–> 316 return func(*args, **kwargs)
317 return tf_decorator.make_decorator(func, new_func, ‘deprecated’,
318 _add_deprecated_arg_notice_to_docstring(
/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/importer.py in import_graph_def(graph_def, input_map, return_elements, name, op_dict, producer_op_list)
431 if producer_op_list is not None:
432 # TODO(skyewm): make a copy of graph_def so we’re not mutating the argument?
–> 433 _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
434
435 graph = ops.get_default_graph()
/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/importer.py in _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
209 # Remove any default attr values that aren’t in op_def.
210 if node.op in producer_op_dict:
–> 211 op_def = op_dict[node.op]
212 producer_op_def = producer_op_dict[node.op]
213 # We make a copy of node.attr to iterate through since we may modify
KeyError: ‘CTCBeamSearchDecoderWithLM’