mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
[tensorexpr][quant] Enable tensorexpr for quant,dequant
ghstack-source-id: e524190fa2
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71243
This commit is contained in:
parent
41de026e8b
commit
b40a47d318
|
|
@ -1648,8 +1648,8 @@ int nnc_lowerings_lazy_registration() {
|
||||||
{"aten::embedding(Tensor weight, Tensor indices, int padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False) -> Tensor"},
|
{"aten::embedding(Tensor weight, Tensor indices, int padding_idx=-1, bool scale_grad_by_freq=False, bool sparse=False) -> Tensor"},
|
||||||
computeEmbedding);
|
computeEmbedding);
|
||||||
|
|
||||||
#define NNC_QUANTIZATION_EXPR_QUANT 0
|
#define NNC_QUANTIZATION_EXPR_QUANT 1
|
||||||
#define NNC_QUANTIZATION_EXPR_DEQUANT 0
|
#define NNC_QUANTIZATION_EXPR_DEQUANT 1
|
||||||
|
|
||||||
RegisterNNCLoweringsFunction aten_quantize_per_tensor(
|
RegisterNNCLoweringsFunction aten_quantize_per_tensor(
|
||||||
{"aten::quantize_per_tensor(Tensor self, float scale, int zero_point, int dtype) -> (Tensor)",
|
{"aten::quantize_per_tensor(Tensor self, float scale, int zero_point, int dtype) -> (Tensor)",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user