Commit 7d126c49 authored by Skye Wanderman-Milne's avatar Skye Wanderman-Milne Committed by TensorFlower Gardener
Browse files

Refactor Operation.__init__ to create some state after creating _c_op

This change moves around the Operation.__init__ logic to create the
TF_Operation before initializing _outputs and before adding the op to
the control flow context (if any). This is in preparation for creating
Operation objects around TF_Operations indirectly created by the C API
(e.g. ops created by TF_ImportGraphDef).

This also disables running HessianTest with the C API enabled, since
it's broken for now (but will be fixed soon).

PiperOrigin-RevId: 175910443
parent 1542d977
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment