You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning message in keras::use_session_with_seed(SEED, disable_gpu = FALSE, disable_parallel_cpu = FALSE):
“use_session_with_seed will be deprecated in the future. use set_random_seed instead.”
Error in keras::use_session_with_seed(SEED, disable_gpu = FALSE, disable_parallel_cpu = FALSE): use_session_with_seed will be deprecated in the future. use set_random_seed instead.
Traceback:
The provided seed value will establish a new random seed for R, Python, NumPy, and TensorFlow. GPU computations and CPU parallelism will also be disabled by default.
If it's the one to use, shouldn't the rstudio documentation point to set_random_seed instead of this deprecated function?
I'm not just asking about a function, but the expected and documented behavior.
use_session_with_seed is a hold-over from TF v1, when users were expected to manage Sessions explicitly. It's no longer relevant in TF v2, and set_random_seed should be all you need.
You are right, the docs needs to be updated. Thank you!
I tried
on Kaggle, and it says:
However,
set_random_seed
does not look to be exported:set_random_seed
looks exported fromtensorflow
, but I'm not sure if it has the same functionality.Versions:
The text was updated successfully, but these errors were encountered: