(self, original_node)
return all_input_names
Adds input conversion nodes to handle quantizing the underlying node.
Adds input conversion nodes to handle quantizing the underlying node.
Adds input conversion nodes to handle quantizing the underlying node .
def add_eightbit_prologue_nodes(self, original_node):
    """Adds input conversion nodes to handle quantizing the underlying node."""
    namespace_prefix = original_node.name + "_eightbit"
    reshape_dims_name, reduction_dims_name = self.add_common_quantization_nodes(
        namespace_prefix)
    input_names = []
    min_max_names = []
    for original_input_name in original_node.input:
      quantize_input_name, min_input_name, max_input_name = (
          self.eightbitize_input_to_node(namespace_prefix, original_input_name,
                                         reshape_dims_name,
                                         reduction_dims_name))
      input_names.append(quantize_input_name)
      min_max_names.append(min_input_name)
      min_max_names.append(max_input_name)
    all_input_names = []
    all_input_names.extend(input_names)
    all_input_names.extend(min_max_names)
    return all_input_names
def add_eightbit_prologue_nodes ( self , original_node ) : namespace_prefix = original_node . name + "_eightbit" reshape_dims_name , reduction_dims_name = self . add_common_quantization_nodes ( namespace_prefix ) input_names = [ ] min_max_names = [ ] for original_input_name in original_node . input : quantize_input_name , min_input_name , max_input_name = ( self . eightbitize_input_to_node ( namespace_prefix , original_input_name , reshape_dims_name , reduction_dims_name ) ) input_names . append ( quantize_input_name ) min_max_names . append ( min_input_name ) min_max_names . append ( max_input_name ) all_input_names = [ ] all_input_names . extend ( input_names ) all_input_names . extend ( min_max_names ) return all_input_names