def AllocateMemory(self):
    if self.params in 'weight':
      edge_shape = self.params['weight'].shape
      self.temp = cm.CUDAMatrix(np.zeros(edge_shape))
      self.gradient = cm.CUDAMatrix(np.zeros(edge_shape))
      self.gradient_history = cm.CUDAMatrix(np.zeros(edge_shape))
      t_op = self.t_op
      if t_op and (t_op.optimizer == deepnet_pb2.Operation.PCD or \
        t_op.optimizer == deepnet_pb2.Operation.CD):
        self.suff_stats = cm.CUDAMatrix(np.zeros(edge_shape))
dataset/ETHPy150Open nitishsrivastava/deepnet/deepnet/edge.py/Edge.AllocateMemory/swapped operands of `in`