diff --git a/include/c_api/status_c.h b/include/c_api/status_c.h index 62b19b99460..cbb94085d10 100644 --- a/include/c_api/status_c.h +++ b/include/c_api/status_c.h @@ -35,7 +35,7 @@ typedef enum MSStatus { // Core kMSStatusCoreFailed = kMSCompCodeCore | 0x1, - // Lite // Common error code, range: [-1, -100) + // Lite // Common error code, range: [-1, -100) kMSStatusLiteError = kMSCompCodeLite | (0x0FFFFFFF & -1), /**< Common error code. */ kMSStatusLiteNullptr = kMSCompCodeLite | (0x0FFFFFFF & -2), /**< NULL pointer returned.*/ kMSStatusLiteParamInvalid = kMSCompCodeLite | (0x0FFFFFFF & -3), /**< Invalid parameter.*/ diff --git a/mindspore/ccsrc/frontend/optimizer/irpass/less_batch_normalization.cc b/mindspore/ccsrc/frontend/optimizer/irpass/less_batch_normalization.cc index 1fdeb8fd1e8..256db81e33b 100644 --- a/mindspore/ccsrc/frontend/optimizer/irpass/less_batch_normalization.cc +++ b/mindspore/ccsrc/frontend/optimizer/irpass/less_batch_normalization.cc @@ -29,7 +29,7 @@ constexpr auto kValidResidualStructureIndex = 1; constexpr auto kBNParametersStartIndex = 2; // Pattern 1 // Add -> BatchNorm -> Conv2D -> Relu ... -> End -// ↘ BatchNorm -> Conv2D -> -> -> -> ↗ +// BatchNorm -> Conv2D -> -> -> -> constexpr auto kFirstBranchPattern1 = 12; constexpr auto kSecondBranchPattern1 = 3; constexpr auto kFirstBranchStartIndexPattern1 = 4; @@ -45,7 +45,7 @@ const std::vector ResidualStructureBasePattern{ {kSecondBranchStartIndexPattern1, kSecondBranchEndIndexPattern1}}}; // Pattern 2 // Add -> BatchNorm -> Conv2D -> Relu ... -> End -// ↘ -> -> ... ... ... -> -> ↗ +// -> -> ... ... ... -> -> constexpr auto kFirstBranchPattern2 = 12; constexpr auto kSecondBranchPattern2 = 1; constexpr auto kFirstBranchStartIndexPattern2 = 4; @@ -59,7 +59,7 @@ const std::vector ResidualStructureShortCutPattern{ {kSecondBranchPattern2, {prim::kPrimRelu}, {kSecondBranchStartIndexPattern2, kSecondBranchEndIndexPattern2}}}; // Pattern 3 // Add -> BatchNorm -> Conv2D -> Relu ... BatchNorm -> Conv2D -> End -// ↘ BatchNorm -> Conv2D -> -> ... ... ... -> -> ↗ +// BatchNorm -> Conv2D -> -> ... ... ... -> -> constexpr auto kFirstBranchPattern3 = 11; constexpr auto kSecondBranchPattern3 = 3; constexpr auto kFirstBranchStartIndexPattern3 = 4; diff --git a/mindspore/ccsrc/transform/express_ir/onnx_exporter.cc b/mindspore/ccsrc/transform/express_ir/onnx_exporter.cc index 6839374e569..b7f5e19b171 100644 --- a/mindspore/ccsrc/transform/express_ir/onnx_exporter.cc +++ b/mindspore/ccsrc/transform/express_ir/onnx_exporter.cc @@ -547,9 +547,9 @@ void ClipPointsComponent(const std::string &points, const std::string &clipped, namespace while_loop_export { namespace { -const char CONTROL_PATTERN[] = "\u21B5"; // ↵ -const char LOOP_BODY_PATTERN[] = "\u21BB"; // ↻ -const char AFTER_LOOP_PATTERN[] = "\u2193"; // ↓ +const char CONTROL_PATTERN[] = "\u21B5"; +const char LOOP_BODY_PATTERN[] = "\u21BB"; +const char AFTER_LOOP_PATTERN[] = "\u2193"; const size_t LOOP_BODY_INPUT = 2; const size_t AFTER_LOOP_INPUT = 3;