Commit ac2c94fb authored by Yao Zhang's avatar Yao Zhang Committed by TensorFlower Gardener
Browse files

Handle duplicated inputs in topological sort. And do not add the redundant...

Handle duplicated inputs in topological sort. And do not add the redundant control dependencies. The would result in malfunction of
topological sort as it previously doesn't handle duplicated inputs. For example, say node A has three repeated input ^B, node A
will never get added to queue in topological sort, because the number of ready inputs will always be less
than the number of inputs (B is only counted once).
node {
  name: "A"
    op: "SomeOp"
    input:"^B"
    input:"^B"
    input:"^B"
}

PiperOrigin-RevId: 167045325
parent 8f25fa96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment