@@ -140,15 +140,15 @@ def adjust_graph(model, input_positions, node_name, quantized_nodes):
140
140
141
141
class QuantizeGraph (Transformation ):
142
142
"""This transformation can be used to introduce a Quant node for a specific type of node in the graph.
143
- Users would be able to specify the location of the quant node by providing the input and output indexs
143
+ Users would be able to specify the location of the quant node by providing the input and output index
144
144
as the parameters.
145
145
146
146
1) Expectations:
147
147
a) Onnx model in the modelwraper format.
148
- b) Model must be cleaned using cleanup_model qonnx.util.cleanup.cleanup_model()
148
+ b) Model must be cleaned using qonnx.util.cleanup.cleanup_model()
149
149
c) Batchsize to be set.
150
150
151
- 2) S.teps to transform are:
151
+ 2) Steps to transform are:
152
152
Step1: Finding the input for the quant node.
153
153
Step2: Finding the consumer of the quant node output.
154
154
Step3: Finding the shape for the output tensor of quant node.
@@ -157,7 +157,7 @@ class QuantizeGraph(Transformation):
157
157
158
158
3) Input:
159
159
A dict "quantnode_map" specifying the criterion, positions, and input parameters like
160
- scale, bitwidth, zeropoint, and others for the particular quantnode.
160
+ scale, bitwidth, zeropoint, and others for a specific quantnode.
161
161
162
162
Criterion:
163
163
a) name: This will allow users to add quant nodes for specific node like "Conv_0" and "Gemm_0".
@@ -171,9 +171,9 @@ class QuantizeGraph(Transformation):
171
171
in comparison to "op_type".
172
172
173
173
Positions: ("input", index) or ("output", index)
174
- a) "input": specifies that the user want to quantize the input of the selected node.
175
- b) "output": specifies that the user want to quantize the input of the selected node.
176
- c) index: specifies which input/output to quantize (as a node can have multiple inputs and outputs)
174
+ a) "input": indicates that the user want to quantize the input of the selected node.
175
+ b) "output": indicates that the user want to quantize the output of the selected node.
176
+ c) index: refers to the input/output index to quantize (a node can have multiple inputs and outputs)
177
177
178
178
Parameters (to quant node) are provided as (scale, zeropoint, bitwidth, narrow, signed, rounding_mode)
179
179
0 commit comments