1#include <ATen/quantized/QTensorImpl.h>
2
3namespace at {
4
5QTensorImpl::QTensorImpl(
6 Storage&& storage,
7 DispatchKeySet key_set,
8 const caffe2::TypeMeta data_type,
9 // NOLINTNEXTLINE(modernize-pass-by-value)
10 QuantizerPtr quantizer)
11 : TensorImpl(std::move(storage), key_set, data_type),
12 quantizer_(quantizer) {}
13
14QTensorImpl::QTensorImpl(
15 ImplType type,
16 Storage&& storage,
17 DispatchKeySet key_set,
18 const caffe2::TypeMeta data_type,
19 // NOLINTNEXTLINE(modernize-pass-by-value)
20 QuantizerPtr quantizer)
21 : TensorImpl(type, std::move(storage), key_set, data_type),
22 quantizer_(quantizer) {}
23
24const char* QTensorImpl::tensorimpl_type_name() const {
25 return "QTensorImpl";
26}
27
28} // namespace at
29