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

Method __init__

fastdeploy/model_executor/layers/pooler.py:235–237  ·  view source on GitHub ↗
(self, activation: PoolerActivation)

Source from the content-addressed store, hash-verified

233class PoolerHead(nn.Layer):
234
235 def __init__(self, activation: PoolerActivation) -> None:
236 super().__init__()
237 self.activation = activation
238
239 def forward(self, pooled_data: Union[list[paddle.Tensor], paddle.Tensor], pooling_metadata: PoolingMetadata):
240

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected