1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include "inference_engine.hpp"
8 #include "prim_tensor.h"
12 namespace MKLDNNPlugin {
16 using CpuPrimTensorPtr = std::shared_ptr<CpuPrimTensor>;
18 class CpuPrimTensor : public PrimTensor {
20 using Memory = std::shared_ptr<mkldnn::memory>;
21 using PrimitiveDesc = std::shared_ptr<mkldnn::memory::primitive_desc>;
23 explicit CpuPrimTensor(mkldnn::memory::desc desc) :
27 mkldnn::memory getPrimitive() { return *(memory.get()); }
31 mkldnn::memory::desc desc;
33 friend class CpuEngine;
35 } // namespace MKLDNNPlugin