Another thing you could try is to replace np with theano.tensor. I’m not sure how well np.exp mixes with theano tensors.
Another thing you could try is to replace np with theano.tensor. I’m not sure how well np.exp mixes with theano tensors.