mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[quant][core][better-engineering] Rename files in quantized directory to conform with non-quantized countertpart filenames
Summary: Names of analogous files in quantized directory (previously snake case) were inconsistent with their non-quantized filename counterparts (pascal case). This is the first of a series of PRs that changes all files in quantized (and sub-directories) dir to have pascal case. `aten/src/ATen/native/quantized/qconv_unpack.cpp` has not been renamed yet because (for reasons currently unknown) after making the name change, `import torch` produces the below error (`qlinear_unpack.cpp` renaming also seems to fail some phabricator CI tests for similar reasons). We suspect that these may be undefined errors and will revisit naming these files in a future PR. ``` terminate called after throwing an instance of 'c10::Error' what(): Type c10::intrusive_ptr<ConvPackedParamsBase<2> > could not be converted to any of the known types. Exception raised from operator() at ../aten/src/ATen/core/jit_type.h:1735 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x55 (0x7f26745c0c65 in /data/users/dzdang/pytorch/torch/lib/libc10.so) frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0xb1 (0x7f26745bdcd1 in /data/users/dzdang/pytorch/torch/lib/libc10.so) frame #2: <unknown function> + 0x1494e24 (0x7f2663b14e24 in /data/users/dzdang/pytorch/torch/lib/libtorch_cpu.so) frame #3: <unknown function> + 0xfed0bc (0x7f266366d0bc in /data/users/dzdang/pytorch/torch/lib/libtorch_cpu.so) frame #4: c10::detail::infer_schema::make_function_schema(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, c10::ArrayRef<c10::detail::infer_schema::ArgumentDef>, c10::ArrayRef<c10::detail::infer_schema::ArgumentDef>) + 0x5a (0x7f266366d71a in /data/users/dzdang/pytorch/torch/lib/libtorch_cpu.so) frame #5: c10::detail::infer_schema::make_function_schema(c10::ArrayRef<c10::detail::infer_schema::ArgumentDef>, c10::ArrayRef<c10::detail::infer_schema::ArgumentDef>) + 0x7b (0x7f266366e06b in /data/users/dzdang/pytorch/torch/lib/libtorch_cpu.so) frame #6: <unknown function> + 0x1493f32 (0x7f2663b13f32 in /data/users/dzdang/pytorch/torch/lib/libtorch_cpu.so) frame #7: <unknown function> + 0xe227dd (0x7f26634a27dd in /data/users/dzdang/pytorch/torch/lib/libtorch_cpu.so) frame #8: <unknown function> + 0x14e0a (0x7f268c934e0a in /lib64/ld-linux-x86-64.so.2) ..........................truncated............. ``` Test Plan: ``` python test/test_quantization.py ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/77037 Approved by: https://github.com/jerryzh168
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
|
||||
#include <ATen/cpu/vec/intrinsics.h>
|
||||
#include <ATen/cpu/vec/vec_base.h>
|
||||
#include <ATen/native/quantized/affine_quantizer_base.h>
|
||||
#include <ATen/native/quantized/AffineQuantizerBase.h>
|
||||
|
||||
#include <c10/util/irange.h>
|
||||
#include <c10/util/qint32.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <ATen/cpu/vec/intrinsics.h>
|
||||
#include <ATen/cpu/vec/vec_base.h>
|
||||
#include <ATen/native/quantized/affine_quantizer_base.h>
|
||||
#include <ATen/native/quantized/AffineQuantizerBase.h>
|
||||
|
||||
#include <c10/util/irange.h>
|
||||
#include <c10/util/qint32.h>
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <ATen/WrapDimUtilsMulti.h>
|
||||
#include <ATen/cpp_custom_type_hack.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
|
||||
#include <c10/util/irange.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/core/op_registration/op_registration.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <cfenv>
|
||||
|
||||
#ifdef USE_FBGEMM
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/DispatchStub.h>
|
||||
#include <ATen/native/quantized/affine_quantizer_base.h>
|
||||
#include <ATen/native/quantized/AffineQuantizerBase.h>
|
||||
|
||||
namespace at {
|
||||
namespace native {
|
@ -1,4 +1,4 @@
|
||||
#include <ATen/native/quantized/affine_quantizer_base.h>
|
||||
#include <ATen/native/quantized/AffineQuantizerBase.h>
|
||||
#include <c10/util/irange.h>
|
||||
#include <cfenv>
|
||||
#include <climits>
|
@ -1,7 +1,7 @@
|
||||
#include <ATen/native/quantized/Copy.h>
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
||||
namespace at {
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/native/TensorIterator.h>
|
||||
#include <ATen/native/cpu/Loops.h>
|
||||
#include <ATen/native/quantized/fake_quant_affine.h>
|
||||
#include <ATen/native/quantized/FakeQuantAffine.h>
|
||||
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/native/TensorIterator.h>
|
||||
#include <ATen/native/cpu/Loops.h>
|
||||
#include <ATen/native/quantized/fake_quant_affine.h>
|
||||
#include <ATen/native/quantized/FakeQuantAffine.h>
|
||||
|
||||
// FakeQuantize Op for PerTensorAffine quantization scheme.
|
||||
namespace at {
|
@ -1,7 +1,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/cpp_custom_type_hack.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <torch/custom_class.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <ATen/Config.h>
|
||||
#if AT_MKLDNN_ENABLED()
|
||||
#include <ATen/Tensor.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/mkldnn/MKLDNNCommon.h>
|
||||
#include <ATen/native/mkldnn/Utils.h>
|
||||
|
||||
|
@ -5,9 +5,8 @@
|
||||
#include <c10/util/irange.h>
|
||||
#include <pytorch_qnnpack.h>
|
||||
#include <qnnpack_func.h>
|
||||
|
||||
#include <ATen/native/quantized/cpu/XnnpackUtils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/utils/Factory.h>
|
||||
|
||||
#include <utility>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/Parallel.h>
|
||||
#include <ATen/native/UpSample.h>
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <ATen/native/quantized/cpu/QuantizedOps.h>
|
||||
#include <ATen/native/cpu/utils.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/conv_serialization.h>
|
||||
#include <ATen/native/quantized/cpu/EmbeddingPackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <ATen/Tensor.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/EmbeddingPackedParams.h>
|
||||
#include <c10/core/QScheme.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -6,8 +6,8 @@
|
||||
#include <ATen/native/TensorIterator.h>
|
||||
#include <ATen/native/UpSample.h>
|
||||
#include <ATen/native/cpu/Loops.h>
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/fake_quant_affine.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <ATen/native/quantized/FakeQuantAffine.h>
|
||||
#include <ATen/native/quantized/cpu/QuantizedOps.h>
|
||||
#include <ATen/native/cpu/utils.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/Parallel.h>
|
||||
#include <ATen/SmallVector.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/XnnpackUtils.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/Parallel.h>
|
||||
#include <ATen/SmallVector.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/cpu/init_qnnpack.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QuantUtils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
|
||||
#ifdef USE_FBGEMM
|
||||
template <int kSpatialDim>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <ATen/Parallel.h>
|
||||
#include <ATen/core/op_registration/op_registration.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/XnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <ATen/Parallel.h>
|
||||
#include <ATen/core/op_registration/op_registration.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QuantUtils.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/cpu/init_qnnpack.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QuantUtils.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/native/TensorIterator.h>
|
||||
#include <ATen/native/cpu/Loops.h>
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <ATen/native/quantized/cpu/init_qnnpack.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QuantizedOps.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/native/TensorIterator.h>
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <math.h>
|
||||
#include <ATen/native/cuda/Loops.cuh>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/native/quantized/fake_quant_affine.h>
|
||||
#include <ATen/native/quantized/FakeQuantAffine.h>
|
||||
#include <ATen/native/TensorIterator.h>
|
||||
#include <ATen/native/cuda/Loops.cuh>
|
||||
#include <thrust/tuple.h>
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <ATen/native/ConvUtils.h>
|
||||
#include <ATen/native/cudnn/ConvShared.h>
|
||||
#include <ATen/native/quantized/cudnn/utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/utils/ParamsHash.h>
|
||||
#include <ATen/TensorUtils.h>
|
||||
#include <c10/cuda/CUDACachingAllocator.h>
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <torch/library.h>
|
||||
#include <ATen/native/quantized/cpu/QuantUtils.h>
|
||||
#include <ATen/native/quantized/cudnn/utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/quantized/Quantizer.h>
|
||||
#include <c10/core/QScheme.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/cudnn/utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <torch/library.h>
|
||||
|
||||
#include <tuple>
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <ATen/cudnn/Handle.h>
|
||||
#include <ATen/cudnn/Types.h>
|
||||
#include <ATen/native/quantized/cudnn/utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/utils/ParamsHash.h>
|
||||
#include <ATen/TensorUtils.h>
|
||||
#include <c10/core/ScalarType.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <ATen/ATen.h>
|
||||
#include <torch/library.h>
|
||||
#include <ATen/native/quantized/cudnn/utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/quantized/Quantizer.h>
|
||||
#include <c10/core/QScheme.h>
|
||||
#include <c10/util/irange.h>
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/cudnn/utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <torch/library.h>
|
||||
|
||||
#include <tuple>
|
||||
|
@ -14,7 +14,7 @@ This file contains some of the auxiliary functions used by both Conv.cpp & Linea
|
||||
|
||||
#include <ATen/cudnn/Types.h>
|
||||
#include <ATen/Tensor.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <c10/core/QScheme.h>
|
||||
#include <c10/util/ArrayRef.h>
|
||||
#include <cudnn_frontend.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <torch/library.h>
|
||||
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/EmbeddingPackedParams.h>
|
||||
#include <torch/custom_class.h>
|
||||
|
||||
|
@ -15,7 +15,7 @@ and /cudnn/ConvUnpackImpl.cpp, for cudnn.
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <ATen/native/quantized/cpu/OnednnUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QuantUtils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
|
||||
namespace at {
|
||||
namespace native {
|
||||
|
@ -8,7 +8,7 @@ and /cudnn/linear_unpack_impl.cpp, for cudnn.
|
||||
*/
|
||||
#include <ATen/ATen.h>
|
||||
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
|
||||
#include <torch/custom_class.h>
|
||||
#include <torch/library.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <ATen/core/Tensor.h>
|
||||
#include <ATen/detail/CUDAHooksInterface.h>
|
||||
#include <ATen/Dispatch.h>
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <ATen/native/TensorFactories.h>
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/Parallel.h>
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <sstream>
|
||||
#include <type_traits>
|
||||
// For quantize_val
|
||||
#include <ATen/native/quantized/affine_quantizer.h>
|
||||
#include <ATen/native/quantized/AffineQuantizer.h>
|
||||
#include <c10/core/ScalarType.h>
|
||||
#include <c10/util/irange.h>
|
||||
#include <ATen/quantized/Quantizer.h>
|
||||
|
@ -1205,10 +1205,10 @@ aten_native_source_non_codegen_list = [
|
||||
"aten/src/ATen/native/quantized/QTensor.cpp",
|
||||
"aten/src/ATen/native/quantized/TensorCompare.cpp",
|
||||
"aten/src/ATen/native/quantized/TensorFactories.cpp",
|
||||
"aten/src/ATen/native/quantized/affine_quantizer.cpp",
|
||||
"aten/src/ATen/native/quantized/affine_quantizer_base.cpp",
|
||||
"aten/src/ATen/native/quantized/fake_quant_per_channel_affine.cpp",
|
||||
"aten/src/ATen/native/quantized/fake_quant_per_tensor_affine.cpp",
|
||||
"aten/src/ATen/native/quantized/AffineQuantizer.cpp",
|
||||
"aten/src/ATen/native/quantized/AffineQuantizerBase.cpp",
|
||||
"aten/src/ATen/native/quantized/FakeQuantPerChannelAffine.cpp",
|
||||
"aten/src/ATen/native/quantized/FakeQuantPerTensorAffine.cpp",
|
||||
"aten/src/ATen/native/quantized/library.cpp",
|
||||
"aten/src/ATen/native/quantized/cpu/RuyUtils.cpp",
|
||||
"aten/src/ATen/native/quantized/cpu/XnnpackUtils.cpp",
|
||||
|
@ -1782,7 +1782,7 @@ if(BUILD_TEST)
|
||||
separate_arguments(FLAGS UNIX_COMMAND "${FLAGS}")
|
||||
# Build vec with minimal dependencies on all platforms but Windows
|
||||
if(NOT MSVC)
|
||||
add_executable(${test_name}_${CPU_CAPABILITY} "${test_src}" ../aten/src/ATen/native/quantized/affine_quantizer_base.cpp)
|
||||
add_executable(${test_name}_${CPU_CAPABILITY} "${test_src}" ../aten/src/ATen/native/quantized/AffineQuantizerBase.cpp)
|
||||
# TODO: Get rid of c10 dependency (which is only needed for the implementation of AT_ERROR)
|
||||
target_link_libraries(${test_name}_${CPU_CAPABILITY} c10 sleef gtest_main)
|
||||
if(USE_FBGEMM)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <test/cpp/tensorexpr/test_base.h>
|
||||
#include <torch/csrc/jit/ir/ir.h>
|
||||
#include <torch/csrc/jit/ir/irparser.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <torch/csrc/jit/passes/onnx/unpack_quantized_weights.h>
|
||||
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <c10/util/irange.h>
|
||||
#include <torch/csrc/jit/ir/constants.h>
|
||||
#include <torch/csrc/jit/ir/irparser.h>
|
||||
|
@ -4,11 +4,11 @@
|
||||
#include <ATen/Functions.h>
|
||||
#include <ATen/NativeFunctions.h>
|
||||
#include <ATen/core/Tensor.h>
|
||||
#include <ATen/native/quantized/PackedParams.h>
|
||||
#include <ATen/native/quantized/cpu/BinaryOps.h>
|
||||
#include <ATen/native/quantized/cpu/QuantUtils.h>
|
||||
#include <ATen/native/quantized/cpu/QuantizedOps.h>
|
||||
#include <ATen/native/quantized/cpu/conv_serialization.h>
|
||||
#include <ATen/native/quantized/packed_params.h>
|
||||
#include <ATen/native/xnnpack/OpContext.h>
|
||||
#include <ATen/quantized/QTensorImpl.h>
|
||||
#include <aten/src/ATen/Parallel.h>
|
||||
|
Reference in New Issue
Block a user