Commit c81a8ae5 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Make sure that additional ops added by Savers to read ResourceVariables are...

Make sure that additional ops added by Savers to read ResourceVariables are added to the graph in a deterministic way.

For ResourceVariables (op "VarHandleOp"), ops.internal_convert_to_tensor will add new ops such as "Read_8/ReadVariableOp". If op_list is cast to a set, as before this change, then adding these new ops made graph construction non-deterministic.

PiperOrigin-RevId: 177185279
parent 4cb754e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment