Skip to content

Commit 54ca290

Browse files
committed
removed ### lines and numbered in headlines
1 parent 8878969 commit 54ca290

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

prototype_source/fx_graph_mode_quant_guide.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ You can use any combination of these options:
2222
b. Write your own observed and quantized submodule
2323

2424

25-
####################################################################
2625
If the code that is not symbolically traceable does not need to be quantized, we have the following two options
2726
to run FX Graph Mode Quantization:
28-
1.a. Symbolically trace only the code that needs to be quantized
27+
28+
29+
a. Symbolically trace only the code that needs to be quantized
2930
-----------------------------------------------------------------
3031
When the whole model is not symbolically traceable but the submodule we want to quantize is
3132
symbolically traceable, we can run quantization only on that submodule.
@@ -69,8 +70,7 @@ Note if original model needs to be preserved, you will have to
6970
copy it yourself before calling the quantization APIs.
7071

7172

72-
#####################################################
73-
1.b. Skip symbolically trace the non-traceable code
73+
b. Skip symbolically trace the non-traceable code
7474
---------------------------------------------------
7575
When we have some non-traceable code in the module, and this part of code doesn’t need to be quantized,
7676
we can factor out this part of the code into a submodule and skip symbolically trace that submodule.
@@ -134,8 +134,7 @@ quantization code:
134134
135135
If the code that is not symbolically traceable needs to be quantized, we have the following two options:
136136

137-
##########################################################
138-
2.a Refactor your code to make it symbolically traceable
137+
a. Refactor your code to make it symbolically traceable
139138
--------------------------------------------------------
140139
If it is easy to refactor the code and make the code symbolically traceable,
141140
we can refactor the code and remove the use of non-traceable constructs in python.
@@ -174,8 +173,7 @@ depends on the model.
174173

175174

176175

177-
#######################################################
178-
2.b. Write your own observed and quantized submodule
176+
b. Write your own observed and quantized submodule
179177
-----------------------------------------------------
180178

181179
If the non-traceable code can’t be refactored to be symbolically traceable,

0 commit comments

Comments
 (0)