Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions governance/api-reviews.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ produced by currently correct python code without a three weeks notice. This
comes up most frequently when adding new ops, but also applies to non-obvious
things such as the graph emitted by gradients or pfor.

### TensorFlow 1.x and 2.x

When adding new API end points, we use the `@tf_export` decorator. For *new* endpoints,
expose them to the v2 API only: `@tf_export("some_name", v1=[])`. This prevents
unnecessarily diverging the `compat.v1` namespace in future releases from what is
published in TensorFlow 1.15.

### Docstrings

Expand Down