aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/autograph
Commit message (Collapse)AuthorAge
* Use lambdas when converting ifexps, since they are now supported.Gravatar Dan Moldovan2018-10-10
| | | | PiperOrigin-RevId: 216533613
* Use overloaded operators for the assert statement. This should remove the ↵Gravatar Dan Moldovan2018-10-10
| | | | | | reliance on importing tensorflow in the generated code. PiperOrigin-RevId: 216528047
* Enable support for lambda functions in static analyses.Gravatar Dan Moldovan2018-10-09
| | | | | | | The CFG treats lambdas as ordinary expressions. The activity analysis ensures that variables masked by the lambda's arguments are not being tracked. Note: lambdas do not allow direct modification (we exclude indirect mutation via function or methods). PiperOrigin-RevId: 216456682
* Remove the deprecated created and IS_LOCAL abstractions from activity analysis.Gravatar Dan Moldovan2018-10-09
| | | | PiperOrigin-RevId: 216446750
* Improve the control flow conversion for loops by using dataflow analysis to ↵Gravatar Dan Moldovan2018-10-09
| | | | | | construct the state. This is part of a larger refactoring which removes the reliance on the deprecated Scope.created field. PiperOrigin-RevId: 216418556
* Include live-in symbols in liveness analysis. These are required for control ↵Gravatar Dan Moldovan2018-10-09
| | | | | | flow conversion. PiperOrigin-RevId: 216370439
* Allow using more than one converter in the testing harness.Gravatar Dan Moldovan2018-10-08
| | | | PiperOrigin-RevId: 216242862
* Add a utility that allows finding a name for an entity, relative to an ↵Gravatar Dan Moldovan2018-10-08
| | | | | | existing namespace. PiperOrigin-RevId: 216211286
* Fix regression that caused xrange to be ignored.Gravatar Dan Moldovan2018-10-04
| | | | PiperOrigin-RevId: 215844450
* Allow creating a list from a tensor. Fix a few inconsistencies in the tensor ↵Gravatar Dan Moldovan2018-10-02
| | | | | | list constructors. PiperOrigin-RevId: 215435720
* Fix the case when an object may have multiple directives with the same ↵Gravatar Dan Moldovan2018-10-02
| | | | | | annotation. PiperOrigin-RevId: 215435613
* Fix typo.Gravatar Dan Moldovan2018-10-01
| | | | PiperOrigin-RevId: 215246174
* Replace the tf.name_scope call with an internal context manager that can ↵Gravatar Dan Moldovan2018-10-01
| | | | | | contain additional boilerplate later on. Unfortunately it could not be extended to include the error handling. PiperOrigin-RevId: 215238369
* Extend support for Index nodes in template expansions.Gravatar Dan Moldovan2018-09-26
| | | | PiperOrigin-RevId: 214618421
* The return value checker should ignore inner functions.Gravatar Dan Moldovan2018-09-26
| | | | PiperOrigin-RevId: 214614921
* Account for cases when the live value of a function is not hashable, in the ↵Gravatar Dan Moldovan2018-09-25
| | | | | | built-in functions converter. Example: d.keys() where d is a dict. PiperOrigin-RevId: 214448772
* Ensure tf.range has semantics consistent with range, which allows start and ↵Gravatar Dan Moldovan2018-09-24
| | | | | | end indices that would result in an empty range. tf.range errors out at graph construction time in that case. PiperOrigin-RevId: 214369488
* Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-09-24
| | | | | | | | 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: 214300210
* Remove the pretty formatting of generated code. The astor library that did ↵Gravatar Dan Moldovan2018-09-24
| | | | | | that uses circular references, which can be problematic in eager mode. PiperOrigin-RevId: 214287432
* Rename source_map to create_source_map. Reorganize the tests to be clearer ↵Gravatar Dan Moldovan2018-09-24
| | | | | | about the expected functionality. PiperOrigin-RevId: 214266947
* Use weakrefs where absolutely safe to do so, in order to reduce the number ↵Gravatar Dan Moldovan2018-09-21
| | | | | | of circular references. Replace unnecessary OrderedDict with a regular dict. PiperOrigin-RevId: 213982097
* Include the print function in the list of special functions - its name is ↵Gravatar Dan Moldovan2018-09-20
| | | | | | not found in the namespace in Python 3. PiperOrigin-RevId: 213879813
* Replace the OrderedDict with a basic list/dict solution. OrderedDict is ↵Gravatar Dan Moldovan2018-09-20
| | | | | | problematic to use in eager because of the circular references it creates. PiperOrigin-RevId: 213862402
* Extend template expansion support for arithmetic expressions.Gravatar Dan Moldovan2018-09-18
| | | | PiperOrigin-RevId: 213462334
* Simplify the interface of conversion_call to allow a ConversionOptions ↵Gravatar Dan Moldovan2018-09-18
| | | | | | | object that can be more easily extended. Currently any new argument needs changing a lot of call sites and there is redundancy in argument documentation. Note: this does not modify the public symbols yet - it's not clear whether we want to complicate their interface. However we may want to use it in to_graph and to_code. PiperOrigin-RevId: 213433379
* Raise error on encountering bad indentation during Autograph parsing.Gravatar A. Unique TensorFlower2018-09-17
| | | | PiperOrigin-RevId: 213324570
* Removing unused code comment in AutoGraph error rewriting.Gravatar A. Unique TensorFlower2018-09-17
| | | | PiperOrigin-RevId: 213282302
* README s/tensorflow.contrib/tensorflow.python/.Gravatar A. Unique TensorFlower2018-09-17
| | | | PiperOrigin-RevId: 213262445
* Allow unsupported comparison operators to be passed through and scale back ↵Gravatar Dan Moldovan2018-09-13
| | | | | | | | the coverage of overloads. It's up for discussion whether we allow overloading everything or let the users rely on the existing operator overloading mechanisms instead. The one case that we do want to support is the equality operator. PiperOrigin-RevId: 212809447
* 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