def encode_batch(self, inputBatch):
        """Encodes a whole batch of input arrays, without learning."""
        X      = inputBatch
        encode = self.encode
        Y      = np.array([ encode(x) for x in X])
        return Y
def encode_batch ( self , inputBatch ) : X = inputBatch encode = self . encode Y = np . array ( [ encode ( x ) for x in X ] ) return Y
Encodes a whole batch of input arrays, without learning.