diff options
Diffstat (limited to 'tensorflow/tools/compatibility/README.md')
-rw-r--r-- | tensorflow/tools/compatibility/README.md | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tensorflow/tools/compatibility/README.md b/tensorflow/tools/compatibility/README.md index 3b66e73f9a..77e27531a9 100644 --- a/tensorflow/tools/compatibility/README.md +++ b/tensorflow/tools/compatibility/README.md @@ -36,6 +36,9 @@ particular, functions that have had reordered arguments like `tf.concat`, `tf.split` will cause the script to incorrectly add keyword arguments that mismap arguments. +- This script wouldn't actually reorder arguments. Instead, the script will add +keyword arguments to functions that had their arguments reordered. + - This script is not able to upgrade all functions. One notable example is `tf.reverse()` which has been changed to take a list of indices rather than a tensor of bools. If the script detects this, it will report this to stdout @@ -43,6 +46,12 @@ a tensor of bools. If the script detects this, it will report this to stdout `tf.reverse(a, [False, True, True])` you will need to manually change it to `tf.reverse(a, [1, 2])`. - - - +- There are some syntaxes that are not handleable with this script as this +script was designed to use only standard python packages. If the script fails +with "A necessary keyword argument failed to be inserted." or +"Failed to find keyword lexicographically. Fix manually.", you can try +[@machrisaa's fork of this script](https://github.com/machrisaa/tf0to1). +[@machrisaa](https://github.com/machrisaa) has used the +[RedBaron Python refactoring engine](https://redbaron.readthedocs.io/en/latest/) +which is able to localize syntactic elements more reliably than the built-in +`ast` module this script is based upon. |