shared_x = theano.shared(train_set_x)
fff = theano.function(inputs=[index], outputs=cost, givens={x: shared_x[
    index:index + 1]})
IndexError: fail to coerce slice entry of type tensorvariable to integer