Compressed Graph doesn't reflect merged quantizers
See original GitHub issueReproduce Issue:
- Run
resnet50_imagenet_int8.json
withtarget_device: "VPU"
- Run following snippet after
create_compressed_model
.quantize_nxnodes = [] g = model.get_graph() for nxnode, node_dict in g._nx_graph.nodes.items(): if 'symmetric_quantize' in nxnode: quantize_nxnodes.append(nxnode) print("#Quantize nodes in graph: {}".format(len(quantize_nxnodes))) print("#QuantizeId: {}".format(len(compression_ctrl.all_quantizations.items())))
Output:
#Quantize nodes in graph: 125
#QuantizeId: 121
The redundant quantize nodes are 25, 80, 152, 258.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Quantisation - an overview | ScienceDirect Topics
Quantization is defined as a lossy data compression technique by which intervals of data are grouped or binned into a single value (or...
Read more >A Survey of Quantization Methods for Efficient Neural Network ...
research, which mostly focused on finding compression methods that would not change the signal too ... Figure 1: Comparison between uniform quantization.
Read more >Image Compression and the Discrete Cosine Transform
The DCT works by separating images into parts of differing frequencies. During a step called quantization, where part of compression actually occurs, the...
Read more >Deep Task-Based Quantization - PMC - NCBI
The operation of the scalar ADCs is modeled as an intermediate activation layer. Unlike previous works which combined fixed uniform quantizers as part...
Read more >Analyzing and Predicting Large Vector-, Graph - mediaTUM
data” does not only come in sheer volume, it is about the complexity of the ... Figure 1.4: Minimum Description Length: Compressing the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vuiseng9 the operations graph does not store this information, but the controller does. Check the
NonWeightQuantizerInfo
structs as contained inQuantizationController.non_weight_quantizers
, namelyNonWeightQuantizerInfo.affected_ia_op_exec_contexts
. This list will store all node addresses corresponding to a single quantizer module. Probably should add a method to the controller that queries an insertion location in the graph and returns the actual quantizer module reference.Thanks @vshampor @ljaljushkin.
For completeness, attaching a sample to access the information as you suggested.