Add unit tests for pooler activation functions (#42824)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-05-16 14:58:16 -04:00
committed by GitHub
parent d1586e1a12
commit 787bc0d031
2 changed files with 238 additions and 1 deletions
@@ -123,7 +123,7 @@ class PoolerClassify(PoolerActivation):
if num_labels == 0:
logger.warning(
"num_labels should be > 0 for classification "
"models, falling back to softmax. "
"models, falling back to sigmoid. "
"Please check if the configuration is correct."
)