def export_checkpoint(checkpoint_path):
reader = tf.train.NewCheckpointReader(checkpoint_path)<EOL>tensor_names = filter(lambda n: n!='<STR_LIT>',<EOL>reader.get_variable_to_shape_map().keys())<EOL>tensors = {}<EOL>for tn in tensor_names:<EOL><INDENT>tensors[tn] = reader.get_tensor(tn)<EOL><DEDENT>return tensors<EOL>
Export variable tensors from the checkpoint files.

:param checkpoint_path: tensorflow checkpoint path
:return: dictionary of tensor. The key is the variable name and the value is the numpy