@@ -448,7 +448,6 @@ def fvisit(node):
448448 src , _ = edge
449449 eidx = edge2idx [edge ]
450450 in_scale = infer_scale_for_node (src )
451- print (type (in_scale ))
452451 in_scales .append (in_scale .tolist ())
453452 in_dtypes .append (prov_dtypes [node2idx [src ]])
454453 out_dtypes .append (req_dtypes [eidx ])
@@ -462,7 +461,6 @@ def fvisit(node):
462461 if isinstance (out_scale , float ):
463462 out_scale = np .float32 (out_scale )
464463
465- print (type (out_scale ))
466464 out_scales .append (out_scale .tolist ())
467465
468466 rectified_output_scales = None
@@ -576,7 +574,7 @@ def visit_call(self, node):
576574 new_node = super ().visit_call (node )
577575 if new_node .op .name == "nn.simulated_quantize" :
578576 print ('---------' )
579- # print('simulated_quantize({})'.format(node_str(node.args[0], self._snode2idx)))
577+ print ('simulated_quantize({})' .format (node_str (node .args [0 ], self ._snode2idx )))
580578 new_node = self ._realize_simulated_quantize (new_node )
581579 return new_node
582580 nidx = self ._node2idx [self ._snode2node [node ]]
@@ -602,7 +600,7 @@ def _realize_simulated_quantize(self, node):
602600 clip_max = to_scalar (clip_max )
603601 print (' in_scale: {}' .format (in_scale ))
604602 print (' out_scale: {}' .format (out_scale ))
605- print (' axis: {}' .format (axis ))
603+ print (' axis: {}' .format (axis ))
606604
607605 if in_dtype == 'float32' and out_dtype == 'float32' :
608606 # do nothing
0 commit comments