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

7 lines
91 B
Python

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