瀏覽代碼

deprecation warning

justheuristic 3 年之前
父節點
當前提交
ce9556dcb0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      cli/inference_one_block.py

+ 2 - 0
cli/inference_one_block.py

@@ -11,6 +11,8 @@ from src.bloom.ops import build_alibi_tensor
 use_hivemind_log_handler("in_root_logger")
 logger = get_logger(__file__)
 
+logger.warning("inference_one_block will soon be deprecated in favour of tests!")
+
 
 def print_device_info(device=None):
     """Prints device stats. Code from https://stackoverflow.com/a/53374933/12891528"""