Skip to content

Commit 027c2c8

Browse files
committed
Removes unused dropout switch macro
Eliminates the DROPOUT_SWITCH macro definition which was no longer needed in the codebase, simplifying the conditional compilation logic and reducing code complexity.
1 parent 00ff6fe commit 027c2c8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

csrc/src/static_switch.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@
2626
} \
2727
}()
2828

29-
#ifdef FLASHATTENTION_DISABLE_DROPOUT
30-
#define DROPOUT_SWITCH(COND, CONST_NAME, ...) \
31-
[&] { \
32-
constexpr static bool CONST_NAME = false; \
33-
return __VA_ARGS__(); \
34-
}()
35-
#else
36-
#define DROPOUT_SWITCH BOOL_SWITCH
37-
#endif
38-
3929
#ifdef FLASHATTENTION_DISABLE_UNEVEN_K
4030
#define EVENK_SWITCH(COND, CONST_NAME, ...) \
4131
[&] { \

0 commit comments

Comments
 (0)