Open
Description
In Python, this code is possible:
session.run(a+b)
This both produces the Add operation with the two parameters, but also the result is automatically fetched.
Generally, this requires a "context" to properly work, as in the more common scenario, you would not only be doing Add operations, but likely invoking other methods, and those methods currently live in the TFGraph class.
So either we do what the Python bindings do which is to have a global variable for a default context, and surface an API that operates on this global context or we end up with an API that is not as pretty looking as it could be.