aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/autograph
Commit message (Collapse)AuthorAge
* Clear the stale README and add reference to the updated file.Gravatar Dan Moldovan2018-09-24
| | | | PiperOrigin-RevId: 214286888
* Move AutoGraph to core. This CL moves the entirety of the code base, keeping ↵Gravatar Dan Moldovan2018-09-11
| | | | | | 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
* Add support for list literals in template replacement values.Gravatar Dan Moldovan2018-09-10
| | | | PiperOrigin-RevId: 212337233
* Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-09-10
| | | | | | | | 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
* Changing run_mode to run_as in documentation.Gravatar A. Unique TensorFlower2018-09-10
| | | | PiperOrigin-RevId: 212270429
* Merge pull request #21580 from ariwaranosai:masterGravatar TensorFlower Gardener2018-09-08
|\ | | | | | | PiperOrigin-RevId: 212122272
* | Special handling of 'range' builtin in live_values analysis.Gravatar A. Unique TensorFlower2018-09-07
| | | | | | | | PiperOrigin-RevId: 211987865
* | A-normal form should not introduce temporaries for nested unpacking assignments.Gravatar A. Unique TensorFlower2018-09-06
| | | | | | | | PiperOrigin-RevId: 211876538
* | Fix references to dynamic_is in generated autograph code. Remove TF import ↵Gravatar A. Unique TensorFlower2018-09-06
| | | | | | | | | | | | header from generated test examples. PiperOrigin-RevId: 211858287
* | utils cleanup: move the builtins module under operators.Gravatar Dan Moldovan2018-09-05
| | | | | | | | PiperOrigin-RevId: 211631516
| * use ndimsGravatar 在原佐为2018-09-05
| |
| * only apply _string_get_item for string with rank 0Gravatar 在原佐为2018-09-04
| |
* | Internal change.Gravatar Dan Moldovan2018-09-04
| | | | | | | | PiperOrigin-RevId: 211450476
| * use single quotation marks for single-line stringsGravatar 在原佐为2018-09-03
| |
| * use single quotation marks for single-line stringsGravatar 在原佐为2018-09-03
| |
* | Add missing __init__.py file.Gravatar A. Unique TensorFlower2018-08-29
| | | | | | | | PiperOrigin-RevId: 210762417
* | common_transformers should be a Python packageGravatar A. Unique TensorFlower2018-08-29
| | | | | | | | PiperOrigin-RevId: 210750932
* | While loop dispatch depends only on whether variables directly referenced in ↵Gravatar A. Unique TensorFlower2018-08-28
| | | | | | | | | | | | | | | | 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
* | Disable broken codegen test.Gravatar Gunhan Gulsoy2018-08-23
| | | | | | | | PiperOrigin-RevId: 209998502
* | Allow Autograph tuple unpacking in for loops.Gravatar A. Unique TensorFlower2018-08-23
| | | | | | | | PiperOrigin-RevId: 209988449
* | Raise AutoGraph error if variable is created inside a loop body.Gravatar A. Unique TensorFlower2018-08-22
| | | | | | | | PiperOrigin-RevId: 209775953
* | Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | | | | | | | | | 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
* | Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | | | | | | | | | 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
* | Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | | | | | | | | | 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
| * use get_item_tensor_string for string with rank 0Gravatar feiquan2018-08-15
| |
| * add test for gen_item_tensor_stringGravatar feiquan2018-08-14
| |
| * extends the tensor index operator to support character accessGravatar feiquan2018-08-13
|/
* Internal change.Gravatar Anna R2018-08-10
| | | | PiperOrigin-RevId: 208294163
* Add support for builtin abs() to AutographGravatar A. Unique TensorFlower2018-08-10
| | | | PiperOrigin-RevId: 208243676
* Clean up the frontend docs a bit, in preparation for a name revision.Gravatar Dan Moldovan2018-08-09
| | | | PiperOrigin-RevId: 208153363
* Add a basic documentation page explaining how to specify the return data ↵Gravatar Dan Moldovan2018-08-09
| | | | | | types of py_func-wrapping functions. PiperOrigin-RevId: 208152501
* Merge pull request #21086 from taehoonlee:fix_typosGravatar TensorFlower Gardener2018-08-08
|\ | | | | | | PiperOrigin-RevId: 207988541
* | Internal change.Gravatar Anna R2018-08-07
| | | | | | | | PiperOrigin-RevId: 207807275
* | Expose tf_if_stmt to other modules.Gravatar Dan Moldovan2018-08-06
| | | | | | | | PiperOrigin-RevId: 207583781
* | Include same-line comments in origin_info.Gravatar Dan Moldovan2018-08-03
| | | | | | | | PiperOrigin-RevId: 207325109
* | Force conversion of directly decorated functions. Ignore the whitelist in ↵Gravatar A. Unique TensorFlower2018-08-02
| | | | | | | | | | | | this case. PiperOrigin-RevId: 207137374
* | Better error message when @autograph.convert(recursive=True) failsGravatar A. Unique TensorFlower2018-08-01
| | | | | | | | PiperOrigin-RevId: 206967298
* | Fix for unspecified arguments in AutoGraph directives.Gravatar A. Unique TensorFlower2018-08-01
| | | | | | | | PiperOrigin-RevId: 206965028
* | Disabling errors integration test on Windows.Gravatar A. Unique TensorFlower2018-07-31
| | | | | | | | PiperOrigin-RevId: 206811197
* | Random (usually non-functional) code generation for testing/fuzzing.Gravatar A. Unique TensorFlower2018-07-31
| | | | | | | | | | | | 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
* | Remove an unneeded check and fix an off by one error in the rewritten line ↵Gravatar A. Unique TensorFlower2018-07-31
| | | | | | | | | | | | numbers. Adds tests to check for this and other basic error rewriting cases. PiperOrigin-RevId: 206786091
* | Adding check to disable wrapping inner function bodies in try/except for ↵Gravatar A. Unique TensorFlower2018-07-31
| | | | | | | | | | | | error reporting until we can support this. PiperOrigin-RevId: 206767387
* | Use TF constants for the break/continue control variables, to ensure control ↵Gravatar Dan Moldovan2018-07-31
| | | | | | | | | | | | 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
* | Add a crude method to mark to mark converted entities so that dynamic ↵Gravatar Dan Moldovan2018-07-30
| | | | | | | | | | | | conversion will not attempt to convert them again. PiperOrigin-RevId: 206691438
* | Add an A-normal form transformer for Python code to pyct.Gravatar A. Unique TensorFlower2018-07-30
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Automated rollback of commit 1ece2e8e96be2eb39922951619ea99208df93284Gravatar Gunhan Gulsoy2018-07-30
| | | | | | | | PiperOrigin-RevId: 206613790
* | Random (usually non-functional) code generation for testing/fuzzing.Gravatar A. Unique TensorFlower2018-07-30
| | | | | | | | | | | | 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
* | Adding NodeDef names to error messages for better debuggability.Gravatar A. Unique TensorFlower2018-07-27
| | | | | | | | | | | | | | The format used is as follows: {{node <node_name>}} PiperOrigin-RevId: 206370355
* | Add support for len calls on tensor lists.Gravatar A. Unique TensorFlower2018-07-27
| | | | | | | | PiperOrigin-RevId: 206325816
* | Fix bug in parallel_walk, along with a few structural bugs that this fix ↵Gravatar Dan Moldovan2018-07-25
| | | | | | | | | | | | | | | | | | | | | | | | 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