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

Method __init__

fastdeploy/model_executor/layers/pooler.py:498–502  ·  view source on GitHub ↗
(self, pooling: PoolingMethod, head: PoolerHead)

Source from the content-addressed store, hash-verified

496 return cls(pooling, head)
497
498 def __init__(self, pooling: PoolingMethod, head: PoolerHead) -> None:
499 super().__init__()
500
501 self.pooling = pooling
502 self.head = head
503
504 def get_supported_tasks(self) -> Set[PoolingTask]:
505 return self.pooling.get_supported_tasks()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected