-// Copyright (C) 2018 Intel Corporation
+// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
return typeDesc->getPtr();
}
-MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::convolution_relu_forward::desc> desc) {
- this->desc.reset(new DescFwdImpl<mkldnn::convolution_relu_forward::desc>(desc));
-}
-
-MKLDNNDescriptor::operator std::shared_ptr<mkldnn::convolution_relu_forward::desc>() {
- DescFwdImpl<mkldnn::convolution_relu_forward::desc> *typeDesc =
- dynamic_cast<DescFwdImpl<mkldnn::convolution_relu_forward::desc> *>(desc.get());
- if (typeDesc == nullptr) {
- THROW_IE_EXCEPTION << "Cannot cast descriptor!";
- }
- return typeDesc->getPtr();
-}
-
MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::convolution_backward_data::desc> desc,
std::shared_ptr<mkldnn::convolution_forward::primitive_desc> prim) {
this->desc.reset(
return typeDesc->getPtr();
}
-MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::relu_forward::desc> desc) {
- this->desc.reset(new DescFwdImpl<mkldnn::relu_forward::desc>(desc));
-}
-
-MKLDNNDescriptor::operator std::shared_ptr<mkldnn::relu_forward::desc>() {
- DescFwdImpl<mkldnn::relu_forward::desc> *typeDesc =
- dynamic_cast<DescFwdImpl<mkldnn::relu_forward::desc> *>(desc.get());
- if (typeDesc == nullptr) {
- THROW_IE_EXCEPTION << "Cannot cast descriptor!";
- }
- return typeDesc->getPtr();
-}
-
MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::roi_pooling_forward::desc> desc) {
this->desc.reset(new DescFwdImpl<mkldnn::roi_pooling_forward::desc>(desc));
}
}
return typeDesc->getPtr();
}
+
+MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::eltwise_forward::desc> desc) {
+ this->desc.reset(new DescFwdImpl<mkldnn::eltwise_forward::desc>(desc));
+}
+
+MKLDNNDescriptor::operator std::shared_ptr<mkldnn::eltwise_forward::desc>() {
+ DescFwdImpl<mkldnn::eltwise_forward::desc> *typeDesc =
+ dynamic_cast<DescFwdImpl<mkldnn::eltwise_forward::desc> *>(desc.get());
+ if (typeDesc == nullptr) {
+ THROW_IE_EXCEPTION << "Cannot cast descriptor!";
+ }
+ return typeDesc->getPtr();
+}
+
+MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::binarization_forward::desc> desc) {
+ this->desc.reset(new DescFwdImpl<mkldnn::binarization_forward::desc>(desc));
+}
+
+MKLDNNDescriptor::operator std::shared_ptr<mkldnn::binarization_forward::desc>() {
+ auto *typeDesc = dynamic_cast<DescFwdImpl<mkldnn::binarization_forward::desc> *>(desc.get());
+ if (typeDesc == nullptr) {
+ THROW_IE_EXCEPTION << "Cannot cast descriptor!";
+ }
+ return typeDesc->getPtr();
+}
+
+MKLDNNDescriptor::MKLDNNDescriptor(std::shared_ptr<mkldnn::binary_convolution_forward::desc> desc) {
+ this->desc.reset(new DescFwdImpl<mkldnn::binary_convolution_forward::desc>(desc));
+}
+
+MKLDNNDescriptor::operator std::shared_ptr<mkldnn::binary_convolution_forward::desc>() {
+ auto *typeDesc = dynamic_cast<DescFwdImpl<mkldnn::binary_convolution_forward::desc> *>(desc.get());
+ if (typeDesc == nullptr) {
+ THROW_IE_EXCEPTION << "Cannot cast descriptor!";
+ }
+ return typeDesc->getPtr();
+}