Commit 5e370f7a authored by Akshay Modi's avatar Akshay Modi Committed by TensorFlower Gardener
Browse files

If context is None, make a call to context(), to force create it.

enable_eager_execution() guarantees the existence of the context, but in v2, we
will not have that explicit call.

Its faster to access the context directly as opposed to making a function
call, and I don't want to add to the overhead of every single op.

PiperOrigin-RevId: 231852561
parent 28ae789b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment