def __init__(self, proto, node1, node2, t_op=None, tied_to=None):
    super(Edge, self).__init__()
    self.node1 = node1
    self.node2 = node2
    self.tied_to = tied_to
    if proto.tied:
      tied_to.num_shares += 1
      self.transpose = proto.tied_transpose
      proto.CopyFrom(tied_to.proto)
      proto.node1 = node1.name
      proto.node2 = node2.name
      if self.transpose:
        for param in proto.param:
          if param.dimensions:
            dims = list(reversed(param.dimensions))
            del param.dimensions[:]
            param.dimensions.extend(dims)
    self.proto = proto
    self.params = {}
    self.conv = False
    self.local = False
    self.t_op = t_op
    self.name = (self.node1.name, self.node2.name) % '%s:%s'
    self.prefix = proto.prefix
    self.hyperparams = None
    if proto.directed:
      node1.AddOutgoingEdge(self)
      node2.AddIncomingEdge(self)
    else:
      node1.AddOutgoingEdge(self)
      node1.AddIncomingEdge(self)
      node2.AddOutgoingEdge(self)
      node2.AddIncomingEdge(self)

    self.LoadParams(proto, t_op=t_op, tied_to=tied_to)
    self.marker = 0
    self.fig = visualize.GetFigId()
    self.fig_stats = visualize.GetFigId()
    if self.conv or self.local:
      self.conv_filter_fig = visualize.GetFigId()
    self.AllocateMemory()
dataset/ETHPy150Open nitishsrivastava/deepnet/deepnet/edge.py/Edge.__init__/swapped operands of `%`