| Commit message (Collapse) | Author | Age |
|
|
|
| |
PiperOrigin-RevId: 214286888
|
|
|
|
|
|
| |
the frontend autograph module in contrib for backward compatibility. Certain files, like notebooks and the readme file may be referenced from the outside, so a copy of those is kept as well. In addition, the notebooks subdirectory of examples is also kept in contrib because the extension the build file relies on is not available in the PIP package.
PiperOrigin-RevId: 212543067
|
|
|
|
| |
PiperOrigin-RevId: 212337233
|
|
|
|
|
|
|
|
| |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 212336417
|
|
|
|
| |
PiperOrigin-RevId: 212270429
|
|\
| |
| |
| | |
PiperOrigin-RevId: 212122272
|
| |
| |
| |
| | |
PiperOrigin-RevId: 211987865
|
| |
| |
| |
| | |
PiperOrigin-RevId: 211876538
|
| |
| |
| |
| |
| |
| | |
header from generated test examples.
PiperOrigin-RevId: 211858287
|
| |
| |
| |
| | |
PiperOrigin-RevId: 211631516
|
| | |
|
| | |
|
| |
| |
| |
| | |
PiperOrigin-RevId: 211450476
|
| | |
|
| | |
|
| |
| |
| |
| | |
PiperOrigin-RevId: 210762417
|
| |
| |
| |
| | |
PiperOrigin-RevId: 210750932
|
| |
| |
| |
| |
| |
| |
| |
| | |
the condition are tensors.
This fixes a bug where a variable in an inner loop could be referenced before creation. These variables would be used in the AG while_stmt to determine whether to dispatch to tf.while_loop or run the Python loop.
PiperOrigin-RevId: 210550604
|
| |
| |
| |
| | |
PiperOrigin-RevId: 209998502
|
| |
| |
| |
| | |
PiperOrigin-RevId: 209988449
|
| |
| |
| |
| | |
PiperOrigin-RevId: 209775953
|
| |
| |
| |
| |
| |
| |
| |
| | |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 209703613
|
| |
| |
| |
| |
| |
| |
| |
| | |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 209703607
|
| |
| |
| |
| |
| |
| |
| |
| | |
self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.
PiperOrigin-RevId: 209701635
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
PiperOrigin-RevId: 208294163
|
|
|
|
| |
PiperOrigin-RevId: 208243676
|
|
|
|
| |
PiperOrigin-RevId: 208153363
|
|
|
|
|
|
| |
types of py_func-wrapping functions.
PiperOrigin-RevId: 208152501
|
|\
| |
| |
| | |
PiperOrigin-RevId: 207988541
|
| |
| |
| |
| | |
PiperOrigin-RevId: 207807275
|
| |
| |
| |
| | |
PiperOrigin-RevId: 207583781
|
| |
| |
| |
| | |
PiperOrigin-RevId: 207325109
|
| |
| |
| |
| |
| |
| | |
this case.
PiperOrigin-RevId: 207137374
|
| |
| |
| |
| | |
PiperOrigin-RevId: 206967298
|
| |
| |
| |
| | |
PiperOrigin-RevId: 206965028
|
| |
| |
| |
| | |
PiperOrigin-RevId: 206811197
|
| |
| |
| |
| |
| |
| | |
Doesn't generate a large space of programs currently, but will spit out combinations of BinOp, Compare, UnaryOp, If and While nodes currently.
PiperOrigin-RevId: 206791273
|
| |
| |
| |
| |
| |
| | |
numbers. Adds tests to check for this and other basic error rewriting cases.
PiperOrigin-RevId: 206786091
|
| |
| |
| |
| |
| |
| | |
error reporting until we can support this.
PiperOrigin-RevId: 206767387
|
| |
| |
| |
| |
| |
| | |
dependencies get created correctly. This renders break cond continue incompatible with Python inputs, but that's an extremely very unlikely use case.
PiperOrigin-RevId: 206738877
|
| |
| |
| |
| |
| |
| | |
conversion will not attempt to convert them again.
PiperOrigin-RevId: 206691438
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The purpose of A-normal form is to assign every intermediate value to
an explicit variable, so that downstream transformations have those
variables to associate information with.
https://en.wikipedia.org/wiki/A-normal_form
This transformer is mostly complete, but there are a few corner cases
with room for improvement (notably constructs that only appear in Python 3).
PiperOrigin-RevId: 206619935
|
| |
| |
| |
| | |
PiperOrigin-RevId: 206613790
|
| |
| |
| |
| |
| |
| | |
Doesn't generate a large space of programs currently, but will spit out combinations of BinOp, Compare, UnaryOp, If and While nodes currently.
PiperOrigin-RevId: 206599818
|
| |
| |
| |
| |
| |
| |
| | |
The format used is as follows:
{{node <node_name>}}
PiperOrigin-RevId: 206370355
|
| |
| |
| |
| | |
PiperOrigin-RevId: 206325816
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
revealed:
1. The conversion process was inconsistently packaging the final output into modules or lists. This CL uniformly uses a list of nodes as output from all *_to_graph functions. As a side effect, converter_testing.py asserts that the output is always a single node and extracts it, so there is no need for tests to unpack it any more. Modify the compiler to skip generating a source map by default.
2. The class converter was incorrectly saving the superclass value to the string 'object' instead of the symbol `object`.
Additional refactoring that was caught along: Simplify the source mapping code, move it to origin_info.py, add tests and additional checks. Slightly simplify the error rewriting mechanism.
PiperOrigin-RevId: 206087110
|