xla
a3b0c6ec - Lower quant/dequant torch op to StableHLO (#5763)

Commit
1 year ago
Lower quant/dequant torch op to StableHLO (#5763) (de)quantize_per_tensor/channel ops from PT2E quantization workflow are lowered to stablehlo uniform_dequantize/quantize. --------- Co-authored-by: Siyuan Liu <lsiyuan@google.coim>
Author
Parents
  • WORKSPACE
  • openxla_patches
    • File
      quant_dequant_converter.diff
    • File
      stablehlo_quant_seralization.diff
  • test/stablehlo
    • File
      test_pt2e_qdq.py
  • torch_xla
    • csrc
      • BUILD
      • File
        init_python_bindings.cpp
      • File
        ir_dump_util.cpp
      • ops
        • File
          dequant_tensor.cpp
        • File
          dequant_tensor.h
        • File
          quant_tensor.cpp
        • File
          quant_tensor.h
        • File
          xla_ops.cpp
        • File
          xla_ops.h
      • File
        quant_util.cpp
      • File
        quant_util.h
      • runtime
        • BUILD
        • File
          pjrt_computation_client.cc
        • File
          stablehlo_helper.cc
        • File
          stablehlo_helper.h
      • File
        tensor_methods.cpp
      • File
        tensor_methods.h
      • File
        xla_graph_executor.cpp
    • experimental
      • File
        quantized.py
    • File
      stablehlo.py