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

Method clone

fastdeploy/engine/pooling_params.py:119–121  ·  view source on GitHub ↗

Returns a deep copy of the PoolingParams instance.

(self)

Source from the content-addressed store, hash-verified

117 return cls(**init_kwargs)
118
119 def clone(self) -> "PoolingParams":
120 """Returns a deep copy of the PoolingParams instance."""
121 return deepcopy(self)
122
123 def verify(self, task: PoolingTask, model_config: Optional["ModelConfig"] = None) -> None:
124

Callers 15

_propose_xpuMethod · 0.80
matmul_hadU_int4Function · 0.80
matmul_hadUFunction · 0.80
forward_mixedMethod · 0.80
forward_mixedMethod · 0.80
append_attentionFunction · 0.80
applyMethod · 0.80
forward_cudaMethod · 0.80
forward_cudaMethod · 0.80
forward_cudaMethod · 0.80
native_top_p_samplingFunction · 0.80

Calls

no outgoing calls

Tested by 15

_run_paddle_testMethod · 0.64
test_update_inputs_v1Method · 0.64
_run_testsMethod · 0.64
run_opMethod · 0.64
test_caseMethod · 0.64
get_baseline_logprobsFunction · 0.64
test_sampler_logprobsFunction · 0.64