Skip to content

Commit

Permalink
Update on "[quant][graphmode][fx] Add support for dynamic quant for R…
Browse files Browse the repository at this point in the history
…NN and RNNCell"

Summary:

Test Plan:
python test/test_quantization.py TestQuantizeFxOps.test_rnn
python test/test_quantization.py TestQuantizeFxOps.test_rnn_cell

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
  • Loading branch information
jerryzh168 committed Dec 9, 2020
1 parent ad64e84 commit 2dbfead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/quantization/fx/quantization_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def convert(self, quantizer: QuantizerCls, node: Node, load_arg: Callable,
load_arg(quantized=False)(emb_node.args),
load_arg(quantized=False)(emb_node.kwargs))

# TODO: merge with embedding quantize handler
# TODO (maybe): merge with embedding quantize handler
@register_quant_pattern(torch.nn.GRUCell)
@register_quant_pattern(torch.nn.LSTMCell)
@register_quant_pattern(torch.nn.RNNCell)
Expand Down

0 comments on commit 2dbfead

Please sign in to comment.