def __call__(self, x, h0=None, c0=None, condition_on=None):
if h0 is None:
h0 = T.alloc(0., x.shape[1], self.dim_h).astype(floatX)
if c0 is None:
c0 = T.alloc(0., x.shape[1], self.dim_h).astype(floatX)
params = self.get_sample_params()
return self.step_call(x, h0, c0, condition_on, *params)
评论列表
文章目录