[CPU][IE TESTS] Covered fusing of HSwish, Mish to Conv by tests (#4903)
This commit is contained in:
parent
fe26fc26a7
commit
0cfd007206
@ -110,6 +110,8 @@ const std::vector<fusingSpecificParams> fusingParamsSet{
|
|||||||
fusingClamp,
|
fusingClamp,
|
||||||
fusingPRelu,
|
fusingPRelu,
|
||||||
fusingSwish,
|
fusingSwish,
|
||||||
|
fusingHSwish,
|
||||||
|
fusingMish,
|
||||||
// other patterns
|
// other patterns
|
||||||
fusingReluScaleShift,
|
fusingReluScaleShift,
|
||||||
fusingFakeQuantizePerTensorRelu,
|
fusingFakeQuantizePerTensorRelu,
|
||||||
|
@ -121,6 +121,8 @@ std::vector<fusingSpecificParams> fusingParamsSet {
|
|||||||
fusingClamp,
|
fusingClamp,
|
||||||
fusingPRelu,
|
fusingPRelu,
|
||||||
fusingSwish,
|
fusingSwish,
|
||||||
|
fusingHSwish,
|
||||||
|
fusingMish,
|
||||||
// other patterns
|
// other patterns
|
||||||
fusingReluScaleShift,
|
fusingReluScaleShift,
|
||||||
fusingFakeQuantizePerTensorRelu,
|
fusingFakeQuantizePerTensorRelu,
|
||||||
|
@ -104,6 +104,14 @@ const auto fusingSwish = fusingSpecificParams{std::make_shared<postNodesMgr>(std
|
|||||||
{[](std::shared_ptr<ngraph::Node> inpNode, const ngraph::element::Type& ngPrc, ngraph::ParameterVector& params){
|
{[](std::shared_ptr<ngraph::Node> inpNode, const ngraph::element::Type& ngPrc, ngraph::ParameterVector& params){
|
||||||
return ngraph::builder::makeActivation(inpNode, ngPrc, ngraph::helpers::Swish, {}, {1.0f});
|
return ngraph::builder::makeActivation(inpNode, ngPrc, ngraph::helpers::Swish, {}, {1.0f});
|
||||||
}, "Swish"}}), {"Swish"}};
|
}, "Swish"}}), {"Swish"}};
|
||||||
|
const auto fusingHSwish = fusingSpecificParams{std::make_shared<postNodesMgr>(std::vector<postNodeBuilder>{
|
||||||
|
{[](std::shared_ptr<ngraph::Node> inpNode, const ngraph::element::Type& ngPrc, ngraph::ParameterVector& params){
|
||||||
|
return ngraph::builder::makeActivation(inpNode, ngPrc, ngraph::helpers::HSwish, {}, {});
|
||||||
|
}, "HSwish"}}), {"HSwish"}};
|
||||||
|
const auto fusingMish = fusingSpecificParams{std::make_shared<postNodesMgr>(std::vector<postNodeBuilder>{
|
||||||
|
{[](std::shared_ptr<ngraph::Node> inpNode, const ngraph::element::Type& ngPrc, ngraph::ParameterVector& params){
|
||||||
|
return ngraph::builder::makeActivation(inpNode, ngPrc, ngraph::helpers::Mish, {}, {});
|
||||||
|
}, "Mish"}}), {"Mish"}};
|
||||||
|
|
||||||
const auto fusingReluScaleShift = fusingSpecificParams{std::make_shared<postNodesMgr>(std::vector<postNodeBuilder>{
|
const auto fusingReluScaleShift = fusingSpecificParams{std::make_shared<postNodesMgr>(std::vector<postNodeBuilder>{
|
||||||
{[](std::shared_ptr<ngraph::Node> inpNode, const ngraph::element::Type& ngPrc, ngraph::ParameterVector& params){
|
{[](std::shared_ptr<ngraph::Node> inpNode, const ngraph::element::Type& ngPrc, ngraph::ParameterVector& params){
|
||||||
|
Loading…
Reference in New Issue
Block a user