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

Method print

fastdeploy/config.py:2153–2173  ·  view source on GitHub ↗

print all config

(self)

Source from the content-addressed store, hash-verified

2151 )
2152
2153 def print(self):
2154 """
2155 print all config
2156 """
2157 logger.info("=================== Configuration Information ===============")
2158 for k, v in self.__dict__.items():
2159 if k == "generation_config" and v is not None:
2160 for gck, gcv in v.to_dict().items():
2161 logger.info("{:<20}:{:<6}{}".format(gck, "", gcv))
2162 elif (
2163 k == "cache_config"
2164 or k == "model_config"
2165 or k == "scheduler_config"
2166 or k == "parallel_config"
2167 or k == "commit_config"
2168 ):
2169 if v is not None:
2170 v.print()
2171 else:
2172 logger.info("{:<20}:{:<6}{}".format(k, "", v))
2173 logger.info("=============================================================")
2174
2175 def init_cache_info(self):
2176 """

Callers

nothing calls this directly

Calls 4

itemsMethod · 0.80
infoMethod · 0.45
to_dictMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected