def quantize(<EOL>self,<EOL>input=None,<EOL>qout=False,<EOL>cutoff=<NUM_LIT:0>,<EOL>retrain=False,<EOL>epoch=None,<EOL>lr=None,<EOL>thread=None,<EOL>verbose=None,<EOL>dsub=<NUM_LIT:2>,<EOL>qnorm=False<EOL>):
a = self.f.getArgs()<EOL>if not epoch:<EOL><INDENT>epoch = a.epoch<EOL><DEDENT>if not lr:<EOL><INDENT>lr = a.lr<EOL><DEDENT>if not thread:<EOL><INDENT>thread = a.thread<EOL><DEDENT>if not verbose:<EOL><INDENT>verbose = a.verbose<EOL><DEDENT>if retrain and not input:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if input is None:<EOL><INDENT>input = "<STR_LIT>"<EOL><DEDENT>self.f.quantize(<EOL>input, qout, cutoff, retrain, epoch, lr, thread, verbose, dsub,<EOL>qnorm<EOL>)<EOL>
Quantize the model reducing the size of the model and
it's memory footprint.