def compute_jacobian_h_x(self, inputs):
inputs = theano.shared(inputs.flatten())
h = self.encode(inputs)
# see later
# h = h.faltten()
# inputs = inputs.flatten()
# inputs = T.reshape(inputs, newshape=(self.nvis))
J = theano.gradient.jacobian(h, inputs)
return h, J
评论列表
文章目录