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

Function _can_skip

fastdeploy/model_executor/utils.py:226–227  ·  view source on GitHub ↗
(weight_name)

Source from the content-addressed store, hash-verified

224 *, skip_prefixes: Optional[List[str]] = None, mapper: Optional[WeightsMapper] = None
225):
226 def _can_skip(weight_name):
227 return any(weight_name.startswith(p) for p in (skip_prefixes or []))
228
229 def fn(weight_name):
230 if mapper is not None:

Callers 1

fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected