pixel_cnn_pp/linearize.py
def run_after(a, b):
  """Force operation a to run after b. Do not add control dependencies
  to ops that already run after. Returns 0 if no dependencies were added,
  1 otherwise."""

  already_after = (b in a.control_inputs) or (b in [i.op for i in a.inputs])

  if already_after:
    return 0
  ge.reroute.add_control_inputs(a, [b])
  return 1
Force operation a to run after b. Do not add control dependencies
  to ops that already run after. Returns 0 if no dependencies were added,
  1 otherwise.
Force operation a to run after b. Do not add control dependencies
to ops that already run after. Returns 0 if no dependencies were added,
1 otherwise.
Force operation a to run after b . Do not add control dependencies to ops that already run after . Returns 0 if no dependencies were added 1 otherwise .
def run_after(a, b):
  already_after = (b in a.control_inputs) or (b in [i.op for i in a.inputs])
  if already_after:
    return 0
  ge.reroute.add_control_inputs(a, [b])
  return 1
def run_after ( a , b ) : already_after = ( b in a . control_inputs ) or ( b in [ i . op for i in a . inputs ] ) if already_after : return 0 ge . reroute . add_control_inputs ( a , [ b ] ) return 1
Force operation a to run after b.
Force operation a to run after b .
"""Force operation a to run after b. Do not add control dependencies
  to ops that already run after. Returns 0 if no dependencies were added,
  1 otherwise."""
a
b