def make_node(self, x): x = T.as_tensor_variable(x) assert x.ndim == 2 o = T.scalar(dtype=x.dtype) return theano.gof.Apply(self, [x], [o])