[Model] Deprecate the score task (this will not affect users). (#37537)
Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
This commit is contained in:
@@ -52,13 +52,6 @@ class DispatchPooler(Pooler):
|
||||
pooler_config,
|
||||
pooling=pooling,
|
||||
classifier=classifier,
|
||||
act_fn="classify",
|
||||
),
|
||||
"score": pooler_for_classify(
|
||||
pooler_config,
|
||||
pooling=pooling,
|
||||
classifier=classifier,
|
||||
act_fn="score",
|
||||
),
|
||||
}
|
||||
)
|
||||
@@ -115,7 +108,7 @@ class DispatchPooler(Pooler):
|
||||
|
||||
class IdentityPooler(Pooler):
|
||||
def get_supported_tasks(self) -> Set[PoolingTask]:
|
||||
return {"plugin", "score"}
|
||||
return {"plugin"}
|
||||
|
||||
def forward(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user