History log of /external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fcb7d92f70cfbbbea0c7ac11346b369fe5e6bd0c 13-Feb-2018 A. Unique TensorFlower <gardener@tensorflow.org> Use a more advanced py_func wrapper, one that allows non-tensor args to be passed directly to the wrapped function.

PiperOrigin-RevId: 185583023
/external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py
65e8efa179bc9d75f6fe9a40d2ae1c9ec26e6b47 08-Feb-2018 A. Unique TensorFlower <gardener@tensorflow.org> More updates:
* add a verbose flag, useful for debugging
* fix the canonicalization of old-style print statement
* fix broken py_func wrapper
* expand the conditional statement to return a dummy value if we cannot fine any return values, and call without an assignment so that the side effect guards catch it instead
* streamline the converter tests a bit more
* avoid aliasing "tf" and "self" in the side effect guards
* improve the namer to generate shorter names

PiperOrigin-RevId: 185002802
/external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py
6a822c373818948037baacfbae1c7355e0fc2c48 05-Feb-2018 A. Unique TensorFlower <gardener@tensorflow.org> Expand the activity analysis to composite names.
Fix a bug in the cond template that caused bad syntax when there it no symbol that needs aliasing.
More refactoring in the process, including:
* introduce the QN (qualified name) class to hold symbol information; it has value semantics and can generate the original symbol, a corresponding AST tree or a single-symbol form (e.g. "a.b" -> a_b)
* allow the template mechanism to use QNs for substitutions
* annotate *all* symbol nodes with their corresponding QN object; this is done as first step during static analysis, and automatically performed on all template expansions
* start using typed annotation keys (Enum values) instead of plain strings
* rename access.py to activity.py
* sanitize nodes in template expansion by deep copying the AST without annotations, to avoid common references

PiperOrigin-RevId: 184528586
/external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py
95a8af24058c168ce8a5327451e1cfcbc56461eb 29-Jan-2018 A. Unique TensorFlower <gardener@tensorflow.org> Ensure that non-recursive conversion is identity transformation wrt all types of function calls by only failing on unresolved symbols if they're needed.
Simplify code structure all around. Remove the awkward activity analysis that deemed a function parameter as "modified". Consolidate activity analysis by tracking function parameters and returned symbols separately. Strengthen the type inference a little by using more interpret-like constructs.

PiperOrigin-RevId: 183705547
/external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py
949dd29d3a8bdc21328c9e94721b344310686eab 25-Jan-2018 A. Unique TensorFlower <gardener@tensorflow.org> Simplify the template mechanism by specifying templates using multi-line strings instead of functions. This loses the syntax verification on templates, but it avoids the clutter of lint overrides and the duplication of parameter names, so things are more readable.

Addresses #16318

PiperOrigin-RevId: 183260854
/external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py
4153e7afff4e17bbef866bd4811b0392ddb25b53 25-Jan-2018 A. Unique TensorFlower <gardener@tensorflow.org> Refactoring pass.
Add a container context class to shorten argument lists and expose context information in a more organized manner.
Clean up names, docs and tests.
Rename submodule to avoid clashing with the new @covert decorator.

PiperOrigin-RevId: 183174971
/external/tensorflow/tensorflow/contrib/py2tf/converters/call_trees.py