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
gaoqiong
flash-attention
Commits
2211db5f
Commit
2211db5f
authored
Oct 04, 2022
by
Eric Engelhart
Browse files
Fixed switch statement, thanks @yocabon
parent
9b1b011b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrc/flash_attn/src/fp16_switch.h
csrc/flash_attn/src/fp16_switch.h
+2
-2
No files found.
csrc/flash_attn/src/fp16_switch.h
View file @
2211db5f
...
...
@@ -18,10 +18,10 @@
#define FP16_SWITCH(COND, ...) \
[&] { \
if (COND) { \
using elem_type =
std::conditional<true, __nv_bfloat16, __half>::type
; \
using elem_type =
__nv_bfloat16
; \
return __VA_ARGS__(); \
} else { \
using elem_type =
std::conditional<true, __nv_bfloat16, __half>::type
; \
using elem_type =
__half
; \
return __VA_ARGS__(); \
} \
}()
\ No newline at end of file
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