MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / __init__

Method __init__

fastdeploy/model_executor/layers/pooler.py:424–431  ·  view source on GitHub ↗
(
        self,
        model_config: ModelConfig,
    )

Source from the content-addressed store, hash-verified

422
423class StepPooler(Pooler):
424 def __init__(
425 self,
426 model_config: ModelConfig,
427 ) -> None:
428 super().__init__()
429
430 self.pooling = AllPool()
431 self.head = RewardPoolerHead(model_config)
432
433 def extract_states(
434 self,

Callers

nothing calls this directly

Calls 3

AllPoolClass · 0.85
RewardPoolerHeadClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected