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