Browse Source

fix segmentfault with fused sparse ftrl

tags/v1.1.0
kswang 5 years ago
parent
commit
74c7bdd471
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      mindspore/ccsrc/utils/utils.h

+ 15
- 0
mindspore/ccsrc/utils/utils.h View File

@@ -223,6 +223,13 @@ constexpr auto kBasicLSTMCellInputGradOpName = "BasicLSTMCellInputGrad";
constexpr auto kBasicLSTMCellOpName = "BasicLSTMCell";
constexpr auto kDynamicRNNOpName = "DynamicRNN";
constexpr auto kLSTMInputGradOpName = "LSTMInputGrad";
constexpr auto kFusedSparseFtrlName = "FusedSparseFtrl";
constexpr auto kFusedSparseProximalAdagradName = "FusedSparseProximalAdagrad";
constexpr auto kFusedSparseLazyAdamName = "FusedSparseLazyAdam";
constexpr auto kSparseApplyFtrlName = "SparseApplyFtrl";
constexpr auto kSparseApplyFtrlV2Name = "SparseApplyFtrlV2";
constexpr auto kSGDName = "SGD";
constexpr auto kLARSUpdateName = "LARSUpdate";

// Hcom Op Type
constexpr auto kHcomOpTypeAllReduce = "HcomAllReduce";
@@ -389,6 +396,14 @@ const std::set<std::string> kOptOperatorSet = {
kFusedSparseAdamName,
kFusedWeightScaleApplyMomentum,
kFusedScaleApplyMomentum,
kApplyCenteredRMSPropOpName,
kFusedSparseFtrlName,
kFusedSparseProximalAdagradName,
kFusedSparseLazyAdamName,
kSparseApplyFtrlName,
kSparseApplyFtrlV2Name,
kSGDName,
kLARSUpdateName,
kPullOpName,
};



Loading…
Cancel
Save