forked from mindspore-Ecosystem/mindspore
!24764 delete some pass from lic
Merge pull request !24764 from zhoufeng/xiu-ba-ge
This commit is contained in:
commit
d79b658c68
|
@ -107,10 +107,6 @@ const AnfNodePtr DereluFusion::Process(const FuncGraphPtr &graph, const AnfNodeP
|
|||
MS_EXCEPTION_IF_NULL(graph);
|
||||
MS_EXCEPTION_IF_NULL(node);
|
||||
|
||||
if (!LicManager::GetInstance().GetPassSwitch(OptPassEnum::DereluFusion)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto relu_grad = node->cast<CNodePtr>();
|
||||
MS_EXCEPTION_IF_NULL(relu_grad);
|
||||
auto relu = GetRelu(relu_grad);
|
||||
|
|
|
@ -195,10 +195,6 @@ const AnfNodePtr FusedBatchNormFusion::Process(const FuncGraphPtr &func_graph, c
|
|||
MS_EXCEPTION_IF_NULL(equiv);
|
||||
MS_EXCEPTION_IF_NULL(node);
|
||||
|
||||
if (!LicManager::GetInstance().GetPassSwitch(OptPassEnum::FusedBatchNormFusion)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
AnfNodePtr bn_training_reduce = CreateBNTrainingReduce(func_graph, node, equiv);
|
||||
std::vector<AnfNodePtr> bn_training_reduce_outputs;
|
||||
CreateMultipleOutputsOfAnfNode(func_graph, bn_training_reduce, kBNTrainingReduceOutputNum,
|
||||
|
|
|
@ -54,10 +54,6 @@ const AnfNodePtr MomentumLossscaleFusion::Process(const FuncGraphPtr &func_graph
|
|||
MS_EXCEPTION_IF_NULL(func_graph);
|
||||
MS_EXCEPTION_IF_NULL(node);
|
||||
|
||||
if (!LicManager::GetInstance().GetPassSwitch(OptPassEnum::MomentumLossscaleFusion)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto cnode = node->cast<CNodePtr>();
|
||||
MS_EXCEPTION_IF_NULL(cnode);
|
||||
CheckCNodeInputSize(cnode, kApplyMomentumInputTensorNum);
|
||||
|
|
|
@ -56,10 +56,6 @@ const AnfNodePtr SoftmaxGradExtFusion::Process(const FuncGraphPtr &graph, const
|
|||
MS_EXCEPTION_IF_NULL(equiv);
|
||||
MS_EXCEPTION_IF_NULL(node);
|
||||
|
||||
if (!LicManager::GetInstance().GetPassSwitch(OptPassEnum::SoftmaxGradExtFusion)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto input0 = GetAnfNodeByVar(equiv, input0_);
|
||||
auto input1 = GetAnfNodeByVar(equiv, input1_);
|
||||
auto input2 = GetAnfNodeByVar(equiv, input2_);
|
||||
|
|
|
@ -29,10 +29,7 @@ constexpr auto kAllOpen = "ALL";
|
|||
|
||||
static const std::map<std::string, OptPassEnum> kPassCodeMap = {
|
||||
{std::to_string(3), OptPassEnum::MatmulBiasaddFusion},
|
||||
{std::to_string(8), OptPassEnum::DereluFusion},
|
||||
{std::to_string(9), OptPassEnum::TransposeReshapeFusion},
|
||||
{std::to_string(10), OptPassEnum::MomentumLossscaleFusion},
|
||||
{std::to_string(12), OptPassEnum::FusedBatchNormFusion},
|
||||
{std::to_string(15), OptPassEnum::BnupdateEltwiseEltwiseFusionPass},
|
||||
{std::to_string(16), OptPassEnum::BnupdateEltwiseFusionPass},
|
||||
{std::to_string(17), OptPassEnum::Conv2DBackpropEltwiseFusionPass},
|
||||
|
@ -44,7 +41,6 @@ static const std::map<std::string, OptPassEnum> kPassCodeMap = {
|
|||
{std::to_string(34), OptPassEnum::EltwiseFusionPass},
|
||||
{std::to_string(36), OptPassEnum::MultiOutputFusionPass},
|
||||
{std::to_string(37), OptPassEnum::MulAddFusion},
|
||||
{std::to_string(38), OptPassEnum::SoftmaxGradExtFusion},
|
||||
{std::to_string(39), OptPassEnum::ClipByNormNoDivSquareSumFusion},
|
||||
{std::to_string(42), OptPassEnum::MulAddNPass},
|
||||
{std::to_string(43), OptPassEnum::Resnet50DbnDwFusionPass},
|
||||
|
|
Loading…
Reference in New Issue