use_compat function

Use Compatibility

Use Compatibility

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.

use_compat(version = c("v1", "v2"))

Arguments

  • version: The version to activate. Must be "v1" or "v2"

Examples

## Not run: library(tensorflow) use_compat("v1") ## End(Not run)
  • Maintainer: Tomasz Kalinowski
  • License: Apache License 2.0
  • Last published: 2024-04-15