Fixed insert_fake_quantize() with empty hw_config (#12676)

This commit is contained in:
Liubov Talamanova authored and GitHub committed 2022-09-06 17:48:28 +04:00
1 parent 10f2cf40eb
commit 53319e60fc
1 file changed
+4 -3
+4 -3
View File
@@ -872,9 +872,10 @@ def insert_fake_quantize(graph, node, ports=None, names=None, fq_types=None, hw_
fq_group = fq_type[idx]
fq_configs = []
node_type = get_hardware_config_operation_type(node, list(hw_config.keys()))
if hw_config is not None and hw_config[node_type]:
fq_configs = hw_config[node_type][fq_group]
if hw_config is not None:
node_type = get_hardware_config_operation_type(node, list(hw_config.keys()))
if hw_config[node_type]:
fq_configs = hw_config[node_type][fq_group]
fq_options = {
'fq_group': fq_group,