def make_node(self, input_): input_ = tensor.as_tensor_variable(input_) output_type = tensor.TensorType( input_.dtype, input_.broadcastable[:-1]) return theano.Apply(self, [input_], [output_type()])