

def perform(self, node, inp, outputs):
    (out,) = outputs
    x = inp[0]
    ind1 = inp[1]
    ind2 = inp[2]
    out[0] = numpy.asarray(x[(ind1, ind2)]).flatten()
    "\n        Here scipy returns the corresponding elements in a matrix which isn't\n        what we are aiming for. Using asarray and flatten, out[0] becomes an\n        array.\n\n        "

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py GetItem2Lists.perform/original