5 #include <fbgemm/Fbgemm.h> 6 #include <fbgemm/src/FbgemmI8DepthwiseAvx2.h> 8 #include "caffe2/quantization/server/dnnlowp.h" 16 std::vector<dnnlowp::TensorQuantizationParams> qparams;
17 std::shared_ptr<std::vector<std::int32_t>> column_offsets;
20 Tensor original_tensor{CPU};
22 std::shared_ptr<std::vector<std::int32_t>> bias;
25 std::shared_ptr<fbgemm::PackBMatrix<std::int8_t>> W;
29 std::shared_ptr<fbgemm::PackBMatrix<std::int8_t, std::int16_t>> W_acc16;
31 std::shared_ptr<fbgemm::CompressedSparseColumn> W_outlier;
32 int nbits_in_non_outlier;
40 std::shared_ptr<fbgemm::Packed3x3ConvMatrix> W_depthwise_3x3;
41 std::shared_ptr<fbgemm::Packed3x3x3ConvMatrix> W_depthwise_3x3x3;
42 std::shared_ptr<fbgemm::PackWeightMatrixForGConv<std::int8_t>> W_gconv;
Packed weight matrix for DNNLOWP Int8Conv operator.
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Packed weight matrix for DNNLOWP Int8FC operator.