def encode(self, x):
        if not self._encode_func:
            x_var = T.vector()
            self._encode_func = theano.function([x_var], self.layers[0].encode_func(x),
                            allow_input_downcast=True, mode=theano.Mode(linker=THEANO_LINKER))
        return self._encode_func(x)
Encode given input.
dataset/ETHPy150Open zomux/deepy/deepy/networks/recursive_auto_encoder.py/RecursiveAutoEncoder.encode