xla
Lower quant/dequant torch op to StableHLO
#5763
Merged

Lower quant/dequant torch op to StableHLO #5763

lsy323 merged 23 commits into master from lsiyuan/quant-dequant-dispatch
lsy323
lsy323 lsy323 requested a review from miladm miladm 2 years ago
lsy323 lsy323 requested a review from qihqi qihqi 2 years ago
lsy323 lsy323 requested a review from JackCaoG JackCaoG 2 years ago
JackCaoG
JackCaoG commented on 2023-11-02
Add q/dq custom op in torch_xla
ea312792
Add stablehlo converter change to support quantized tensor. Update
c6bc19eb
Add per-channel quant, add resnet test
79632c23
lsy323 add stablehlo patch for serializing qdq into bytecode
108992b0
lsy323 add support of exporting qdq to tf.saved_model
1adc299b
lsy323 make xla quant/dequant op compatible with decomp table
3efb881f
lsy323 format
9a6bda1e
lsy323 untrack some tests
23b2aa5e
lsy323 move resnet test under stablehlo test folder
7f620923
lsy323 add patch for stablehlo.uniform_quantize/dequantize bytecode serializ…
a5122419
lsy323 rename files
3d00629f
lsy323 use python dispatcher for qdq
341c6668
lsy323 fix compile
c779522d
lsy323 fix linter
7f79a494
lsy323 add per tensor/channel tests
fbb68e07
lsy323 format
163de141
have all scalers have positive values
c329b63c
lsy323 lsy323 force pushed from e70be80d to c329b63c 2 years ago
add comment for STABLEHLO_BYTECODE_FROM_PRETTYPRINT
9177ae0f
lsy323 lsy323 requested a review from JackCaoG JackCaoG 2 years ago
qihqi
qihqi approved these changes on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
JackCaoG
JackCaoG commented on 2023-11-27
do not udpate save_torch_module_as_tf_saved_model signature to take g…
b852cc96
add comment for QuantParams struct
5d28a73d
add new lines to the end of header file
2253b2bd
update test
1560e724
add assertions, use int for zp
3e5462d8
lsy323
lsy323 lsy323 requested a review from JackCaoG JackCaoG 2 years ago
lsy323 lsy323 added stablehlo
JackCaoG
JackCaoG approved these changes on 2023-11-28
lsy323 lsy323 merged a3b0c6ec into master 2 years ago
miladm
miladm commented on 2023-12-01
lsy323 lsy323 deleted the lsiyuan/quant-dequant-dispatch branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone