Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-scatter
Commits
3b6c702f
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "b134f6a8b6b3d75af45a0b918b4006d2a06e0f91"
Commit
3b6c702f
authored
Feb 14, 2020
by
Stefan Ivanov
Browse files
Fix compile-time constant usage with MSVC
parent
89e1c2cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
csrc/cpu/reducer.h
csrc/cpu/reducer.h
+6
-6
No files found.
csrc/cpu/reducer.h
View file @
3b6c702f
...
@@ -14,27 +14,27 @@ const std::map<std::string, ReductionType> reduce2REDUCE = {
...
@@ -14,27 +14,27 @@ const std::map<std::string, ReductionType> reduce2REDUCE = {
[&] { \
[&] { \
switch (reduce2REDUCE.at(reduce)) { \
switch (reduce2REDUCE.at(reduce)) { \
case SUM: { \
case SUM: { \
const ReductionType REDUCE = SUM;
\
static
const
expr
ReductionType REDUCE = SUM; \
return __VA_ARGS__(); \
return __VA_ARGS__(); \
} \
} \
case MEAN: { \
case MEAN: { \
const ReductionType REDUCE = MEAN;
\
static
const
expr
ReductionType REDUCE = MEAN; \
return __VA_ARGS__(); \
return __VA_ARGS__(); \
} \
} \
case MUL: { \
case MUL: { \
const ReductionType REDUCE = MUL;
\
static
const
expr
ReductionType REDUCE = MUL; \
return __VA_ARGS__(); \
return __VA_ARGS__(); \
} \
} \
case DIV: { \
case DIV: { \
const ReductionType REDUCE = DIV;
\
static
const
expr
ReductionType REDUCE = DIV; \
return __VA_ARGS__(); \
return __VA_ARGS__(); \
} \
} \
case MIN: { \
case MIN: { \
const ReductionType REDUCE = MIN;
\
static
const
expr
ReductionType REDUCE = MIN; \
return __VA_ARGS__(); \
return __VA_ARGS__(); \
} \
} \
case MAX: { \
case MAX: { \
const ReductionType REDUCE = MAX;
\
static
const
expr
ReductionType REDUCE = MAX; \
return __VA_ARGS__(); \
return __VA_ARGS__(); \
} \
} \
} \
} \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment