support for windows compile
This commit is contained in:
parent
b2c39cc90c
commit
2412a47d77
|
@ -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.*/
|
||||
|
|
|
@ -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<kStructureTuple> 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<kStructureTuple> 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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue