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

Function file_or_path_exists

fastdeploy/transformer_utils/config.py:20–24  ·  view source on GitHub ↗
(model, config_name)

Source from the content-addressed store, hash-verified

18
19
20def file_or_path_exists(model, config_name):
21 if (local_path := Path(model)).exists():
22 return (local_path / config_name).is_file()
23
24 return False
25
26
27def get_pooling_config_name(pooling_name: str):

Callers 1

get_pooling_configFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected