Commit 9088cf61 authored by Michael Case's avatar Michael Case Committed by TensorFlower Gardener
Browse files

Separate out Keras API generation from TensorFlow.

When moving Keras to a separate repo, we will have to separate the API
generation from the rest of TensorFlow. The generated API files will have
to part of the Keras package, as core TensorFlow will have no way of knowing
which version of the tf.Keras API will be installed.

This CL does a few things...
- Move ALL @tf_export("keras.*") declarations in to keras/ directory.
  See python/keras/ops.py where I had to move lots of these decorators
  out of TensorFlow code.
- Change ALL @tf_export("keras.*") to @keras_export("keras.*"). Doing
  this will allow us to generate the public Keras python __init__.py files
  separately from the rest of the TensorFlow API.
- Add a new api_gen targets to keras/api/BUILD to generate this API.

PiperOrigin-RevId: 226050838
parent 796ca2bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment