Fixed insert_fake_quantize() with empty hw_config (#12676)
This commit is contained in:
1 parent
10f2cf40eb
commit
53319e60fc
1 file changed
+4
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user