How to swich theano.tensor to numpy.array?
问题 I have simple codes as shown below: class testxx(object): def __init__(self, input): self.input = input self.output = T.sum(input) a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], dtype = np.float32) classfier = testxx(a) outxx = classfier.output outxx = np.asarray(outxx, dtype = np.float32) However, I get the following error information: ValueError: setting an array element with a sequence. Furthermore, when I use the function of theano.tensor, it seems that what it returns is called "tensor"