use_compat {tensorflow} | R Documentation |
Use Compatibility
Description
Enables TensorFlow to run under a different API version for compatibility with previous versions. For instance, this is useful to run TensorFlow 1.x code when using TensorFlow 2.x.
Usage
use_compat(version = c("v1", "v2"))
Arguments
version |
The version to activate. Must be |
Examples
## Not run:
library(tensorflow)
use_compat("v1")
## End(Not run)
[Package tensorflow version 2.16.0 Index]