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

Don't constant fold FakeParam ops.

FakeParam claims to have a different output shape than it actually
outputs (since the output is not meant to ever be accessed).  Prior to
this change, ConstantFold() would call ReplaceTensorWithConstant() with
the invalid FakeParam output, which would cause a
use-before-initialization error.

PiperOrigin-RevId: 217929903
parent 607d6e0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment