mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
![]() Currently, the following information will be printed even the user is not directly using a tune function. This is confusing and not actionable. ``` "`checkpoint_dir` in `func(config, checkpoint_dir)` is " "being deprecated. " "To save and load checkpoint in trainable functions, " "please use the `ray.air.session` API:\n\n" "from ray.air import session\n\n" "def train(config):\n" " # ...\n" ' session.report({"metric": metric}, checkpoint=checkpoint)\n\n' "For more information please see " "https://docs.ray.io/en/master/ray-air/key-concepts.html#session\n" ``` The new logic check if `base_trainer` is in the call stack and only adds the warning message when it is not. The new logic will be removed once internally we migrate to use `session` API. |
||
---|---|---|
.. | ||
ray | ||
requirements | ||
asv.conf.json | ||
build-wheel-macos-arm64.sh | ||
build-wheel-macos.sh | ||
build-wheel-manylinux2014.sh | ||
build-wheel-windows.sh | ||
MANIFEST.in | ||
README-building-wheels.md | ||
requirements.txt | ||
requirements_linters.txt | ||
requirements_ml_docker.txt | ||
setup.py |