cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
czeh@ball
Contributor
Contributor
302 Views
Registered: ‎11-09-2018

[DEPLOY ERROR] Cannnot find quantize info for weights: BN1/mul/_0__cf__0

2020-07-31 09:03:57.124302: F tensorflow/contrib/decent_q/utils/deploy_quantized_graph.cc:1084] Check failed: scale_node.attr().count("wpos") [DEPLOY ERROR] Cannnot find quantize info for weights: BN1/mul/_0__cf__0
Fatal Python error: Aborted

Current thread 0x00007f86b903a740 (most recent call first):
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/quantize_graph.py", line 264 in CreateQuantizeDeployGraphDef
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 313 in deploy_frozen
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 347 in quantize_frozen
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 621 in main
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 942 in <lambda>
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/absl/app.py", line 250 in _run_main
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/absl/app.py", line 299 in run
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/python/platform/app.py", line 40 in run
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 943 in run_main
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/vai_q_tensorflow", line 11 in <module>

Ran the following:

vai_q_tensorflow --version

# quantize
vai_q_tensorflow quantize \
--input_frozen_graph signet32_x_32.pb \
--input_fn rf_input.calib_input \
--output_dir ./ \
--input_nodes 'Input_Layer' \
--output_nodes 'SoftMax' \
--input_shapes 1,2,32,32 \
--calib_iter 100

0 Kudos
Reply
2 Replies
jasonwu
Moderator
Moderator
206 Views
Registered: ‎03-27-2013

Hi czeh@ball ,

 

What version of Vitis AI did you use?

There is a Python trace reported here. I would suggest you to check these files and find out what triggering the error message.

Best Regards,
Jason
-----------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
-----------------------------------------------------------------------------------------------
0 Kudos
Reply
jo7ueb
Newbie
Newbie
133 Views
Registered: ‎10-22-2020

Looks v1.1

 

I'm using v1.1 and I got exact same error message.

 

0 Kudos
Reply