def get_output_ops(op, op_reg_manager):
  """Returns output ops for a given op.

  Args:
    op: tf.Operation to get outputs of.
    op_reg_manager: OpRegularizerManager to keep track of the grouping.

  Returns:
    List of tf.Operation that are the outputs of op.
  """
  output_ops = []
  for output_tensor in op.outputs:
    for output_op in output_tensor.consumers():
      if output_op not in output_ops and output_op in op_reg_manager.ops:
        output_ops.append(output_op)
  return output_ops