STT-tensorflow/tensorflow/compiler/mlir/lite/quantization/xla/BUILD
Feng Liu 79678a310f Materialize the quantization results by the xla primitive ops
Specifically, the constant is quantized according to the quantization
information and dequantize ops is implemented by the xla dequantize ops.

PiperOrigin-RevId: 293222337
Change-Id: If73ce832b35ed9e687c3ae28b506b7e12d3ea115
2020-02-04 14:03:37 -08:00

41 lines
1.0 KiB
Python

package(
default_visibility = [
":friends",
],
licenses = ["notice"], # Apache 2.0
)
package_group(
name = "friends",
includes = ["//third_party/mlir:subpackages"],
packages = [
"//tensorflow/compiler/mlir/...",
"//tensorflow/compiler/mlir/lite/...",
],
)
cc_library(
name = "hlo_xla_quantization_passes",
srcs = [
"materialize.cc",
"op_quant_spec.inc",
"propagate.cc",
],
hdrs = [
"passes.h",
],
deps = [
"//tensorflow/compiler/mlir/lite/quantization:quantization_config",
"//tensorflow/compiler/mlir/lite/quantization:quantization_lib",
"//tensorflow/compiler/mlir/xla:hlo",
"//tensorflow/compiler/xla/client/lib:quantize",
"@com_google_absl//absl/memory",
"@llvm-project//llvm:support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:QuantOps",
"@llvm-project//mlir:StandardOps",
],
alwayslink = 1,
)