Commit d13e9307 authored by Igor Ganichev's avatar Igor Ganichev Committed by TensorFlower Gardener
Browse files

Make function tests a little less brittle.

Function tests depended on a global counter deep in constant folding
logic being just the right value. The value depends on exactly what
other tests involving constant folding run in the same process.

This fix adds a function that constant folds a small graph and
parses the counter value from resulting graph node name. The tests
can they base their expectations off this value. This is still not ideal
as multiple tests can theoretically run in parallel, but better than
before.

PiperOrigin-RevId: 218898255
parent 68881e62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment