Namespaces | Variables
keras_to_tensorflow.py File Reference

Go to the source code of this file.

Namespaces

 keras_to_tensorflow
 

Variables

 keras_to_tensorflow.parser = argparse.ArgumentParser(description='set input arguments')
 
 keras_to_tensorflow.action
 
 keras_to_tensorflow.dest
 
 keras_to_tensorflow.type
 
 keras_to_tensorflow.str
 
 keras_to_tensorflow.default
 
 keras_to_tensorflow.int
 
 keras_to_tensorflow.bool
 
 keras_to_tensorflow.args = parser.parse_args()
 
string keras_to_tensorflow.output_fld = ''
 
 keras_to_tensorflow.output_model_file
 
 keras_to_tensorflow.weight_file_path = str(args.input_model_file)
 
 keras_to_tensorflow.net_model = load_model(weight_file_path)
 
 keras_to_tensorflow.num_output = args.num_outputs
 
list keras_to_tensorflow.pred = [None]*num_output
 
list keras_to_tensorflow.pred_node_names = [None]*num_output
 
 keras_to_tensorflow.name
 
 keras_to_tensorflow.sess = K.get_session()
 
 keras_to_tensorflow.f = args.output_graphdef_file
 
 keras_to_tensorflow.as_text
 
list keras_to_tensorflow.transforms = ["quantize_weights", "quantize_nodes"]
 
 keras_to_tensorflow.transformed_graph_def = TransformGraph(sess.graph.as_graph_def(), [], pred_node_names, transforms)
 
 keras_to_tensorflow.constant_graph = graph_util.convert_variables_to_constants(sess, transformed_graph_def, pred_node_names)