hf_text-generation-inference/server/text_generation_server/utils/log.py

7 lines
90 B
Python
Raw Normal View History

from functools import lru_cache
@lru_cache(10)
def log_once(log, msg:str):
log(msg)