[Bugfix] Honor STEP token pooling in DispatchPooler.for_seq_cls (#55307)
Signed-off-by: weihan <130119942+krsish@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ from .seqwise import (
|
||||
pooler_for_classify,
|
||||
pooler_for_embed,
|
||||
)
|
||||
from .tokwise import AllPool, pooler_for_token_classify, pooler_for_token_embed
|
||||
from .tokwise import pooler_for_token_classify, pooler_for_token_embed
|
||||
|
||||
|
||||
class DispatchPooler(Pooler):
|
||||
@@ -46,7 +46,6 @@ class DispatchPooler(Pooler):
|
||||
{
|
||||
"token_classify": pooler_for_token_classify(
|
||||
pooler_config,
|
||||
pooling=AllPool(),
|
||||
classifier=classifier,
|
||||
),
|
||||
"classify": pooler_for_classify(
|
||||
|
||||
Reference in New Issue
Block a user