/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/passes/quantization
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/passes/quantization/helper.h (7381B)
#pragma once
#include
#include
#include
#include
#include
#include
#include
namespace torch {
namespace jit {
using graph_rewrite_helper::getFuncName;
// Vector of a module and the name of its method
using ModuleMethodVector = std::vector>;
// Map of quantization parameter name and value
// for example _scale, _zero_point,
// _scalar_type and _axis(for per channel quantization)
using QParamVector = std::vector>;
// =========== helper functions for Value =========
// Check if a value is weight, since we need to use weight observer
// for weight
TORCH_API bool isWeight(Value* v);
// Check if a value is bias for conv and linear, which we do not
// quantize
TORCH_API bool isBiasOfConvOrLinear(Value* v);
TORCH_API bool isEmbeddingBagNonInput(Value* v);
// Get the use as scalar input of clamp ops for the input value
c10::optional