Monday, July 30, 2018

How to quantize all nodes except a particular one?

Leave a Comment

I am using tensorflow Graph Transform Tool to quantize the graph using

input_names = ["prefix/input"] output_names = ["final_result"]   transforms1 = ["strip_unused_nodes","fold_constants(ignore_errors=true)",  "fold_batch_norms",  "fold_old_batch_norms","quantize_weights" ]  transformed_graph_def = TransformGraph(graph.as_graph_def(), input_names,output_names, transforms1) 

I use the option quantize_weights to quantize the weights in graph, I know that certain nodes can remain unquantized by changing threshold minimum_size in quantize_weights, so leaving some nodes unquantized is certainly possible.

I want to quantize the weights of all nodes except a particular node with name K or a set of nodes that have name in K(set). How can this be achieved ?

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment