Refactor compatibility upgrade tool to use pasta (an AST based refactoring...
Refactor compatibility upgrade tool to use pasta (an AST based refactoring tool) instead of line based edits. This allows for some simplification (e.g., we can now remove arguments with a dict entry) and for much more powerful transformations. This passes all tests with no destructive test changes (though there are cosmetic test changes). Also adds transformations for tf.to_dtype -> tf.cast(..., dtype=...). PiperOrigin-RevId: 227934801
Loading
Please sign in to comment