Remove layerCreator for logical ops. (#3970)
* Remove layerCreator for logical ops. * Remove visit_attributes() for LogicalOr op.
This commit is contained in:
parent
efa5b6063a
commit
0157800887
@ -663,14 +663,9 @@ std::shared_ptr<ngraph::Node> V10Parser::XmlDeserializer::createNode(
|
||||
const Blob::CPtr& weights,
|
||||
const GenericLayerParams& params) {
|
||||
static const InferenceEngine::details::caseless_unordered_map<std::string, std::shared_ptr<LayerBaseCreator>> creators = {
|
||||
{ "LessEqual", std::make_shared<LayerCreator<ngraph::op::v1::LessEqual>>("LessEqual") },
|
||||
{ "ReorgYolo", std::make_shared<LayerCreator<ngraph::op::ReorgYolo>>("ReorgYolo") },
|
||||
{ "PSROIPooling", std::make_shared<LayerCreator<ngraph::op::PSROIPooling>>("PSROIPooling") },
|
||||
{ "VariadicSplit", std::make_shared<LayerCreator<ngraph::op::VariadicSplit>>("VariadicSplit") },
|
||||
{ "LogicalAnd", std::make_shared<LayerCreator<ngraph::op::v1::LogicalAnd>>("LogicalAnd") },
|
||||
{ "LogicalOr", std::make_shared<LayerCreator<ngraph::op::v1::LogicalOr>>("LogicalOr") },
|
||||
{ "LogicalXor", std::make_shared<LayerCreator<ngraph::op::v1::LogicalXor>>("LogicalXor") },
|
||||
{ "LogicalNot", std::make_shared<LayerCreator<ngraph::op::v1::LogicalNot>>("LogicalNot") },
|
||||
};
|
||||
|
||||
// Check that operation in default opsets
|
||||
@ -833,15 +828,6 @@ std::shared_ptr<ngraph::Node> V10Parser::XmlDeserializer::createNode(
|
||||
}
|
||||
|
||||
namespace InferenceEngine {
|
||||
// LessEqual layer
|
||||
template <>
|
||||
std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::v1::LessEqual>::createLayer(
|
||||
const ngraph::OutputVector& inputs, const pugi::xml_node& node, const Blob::CPtr& weights,
|
||||
const GenericLayerParams& layerParsePrms) {
|
||||
checkParameters(inputs, layerParsePrms, 2);
|
||||
return std::make_shared<ngraph::op::v1::LessEqual>(inputs[0], inputs[1]);
|
||||
}
|
||||
|
||||
// VariadicSplit layer
|
||||
template <>
|
||||
std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::VariadicSplit>::createLayer(
|
||||
@ -903,40 +889,4 @@ std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::PSROIPooling>:
|
||||
spatial_bins_y, mode);
|
||||
}
|
||||
|
||||
// LogicalAnd layer
|
||||
template <>
|
||||
std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::v1::LogicalAnd>::createLayer(
|
||||
const ngraph::OutputVector & inputs, const pugi::xml_node& node, const Blob::CPtr& weights,
|
||||
const GenericLayerParams& layerParsePrms) {
|
||||
checkParameters(inputs, layerParsePrms, 2);
|
||||
return std::make_shared<ngraph::op::v1::LogicalAnd>(inputs[0], inputs[1]);
|
||||
}
|
||||
|
||||
// LogicalOr layer
|
||||
template <>
|
||||
std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::v1::LogicalOr>::createLayer(
|
||||
const ngraph::OutputVector & inputs, const pugi::xml_node& node, const Blob::CPtr& weights,
|
||||
const GenericLayerParams& layerParsePrms) {
|
||||
checkParameters(inputs, layerParsePrms, 2);
|
||||
return std::make_shared<ngraph::op::v1::LogicalOr>(inputs[0], inputs[1]);
|
||||
}
|
||||
|
||||
// LogicalXor layer
|
||||
template <>
|
||||
std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::v1::LogicalXor>::createLayer(
|
||||
const ngraph::OutputVector & inputs, const pugi::xml_node& node, const Blob::CPtr& weights,
|
||||
const GenericLayerParams& layerParsePrms) {
|
||||
checkParameters(inputs, layerParsePrms, 2);
|
||||
return std::make_shared<ngraph::op::v1::LogicalXor>(inputs[0], inputs[1]);
|
||||
}
|
||||
|
||||
// LogicalNot layer
|
||||
template <>
|
||||
std::shared_ptr<ngraph::Node> V10Parser::LayerCreator<ngraph::op::v1::LogicalNot>::createLayer(
|
||||
const ngraph::OutputVector & inputs, const pugi::xml_node& node, const Blob::CPtr& weights,
|
||||
const GenericLayerParams& layerParsePrms) {
|
||||
checkParameters(inputs, layerParsePrms, 1);
|
||||
return std::make_shared<ngraph::op::v1::LogicalNot>(inputs[0]);
|
||||
}
|
||||
|
||||
} // namespace InferenceEngine
|
||||
|
@ -74,7 +74,7 @@ namespace ngraph
|
||||
|
||||
private:
|
||||
void validate_and_infer_elementwise_logical(const op::AutoBroadcastSpec& autob);
|
||||
AutoBroadcastSpec m_autob;
|
||||
AutoBroadcastSpec m_autob = AutoBroadcastSpec::NUMPY;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user