(self, namespace_prefix)
return reshape_dims_name, reduction_dims_name
Builds constant nodes needed for quantization of inputs.
Builds constant nodes needed for quantization of inputs.
Builds constant nodes needed for quantization of inputs .
def add_common_quantization_nodes(self, namespace_prefix):
    """Builds constant nodes needed for quantization of inputs."""
    reshape_dims_name = namespace_prefix + "_reshape_dims"
    reduction_dims_name = namespace_prefix + "_reduction_dims"

    reshape_dims_node = create_constant_node(reshape_dims_name, -1,
                                             dtypes.int32, [1])
    self.add_output_graph_node(reshape_dims_node)
    reduction_dims_node = create_constant_node(reduction_dims_name, 0,
                                               dtypes.int32, [1])
    self.add_output_graph_node(reduction_dims_node)
    return reshape_dims_name, reduction_dims_name
def add_common_quantization_nodes ( self , namespace_prefix ) : reshape_dims_name = namespace_prefix + "_reshape_dims" reduction_dims_name = namespace_prefix + "_reduction_dims" reshape_dims_node = create_constant_node ( reshape_dims_name , - 1 , dtypes . int32 , [ 1 ] ) self . add_output_graph_node ( reshape_dims_node ) reduction_dims_node = create_constant_node ( reduction_dims_name , 0 , dtypes . int32 , [ 1 ] ) self . add_output_graph_node ( reduction_dims_node ) return reshape_dims_name , reduction_dims_name