'Initializer for the SketchRNN model.
Args:
hps: a HParams object containing model hyperparameters
gpu_mode: a boolean that when True, uses GPU mode.
reuse: a boolean that when true, attemps to reuse variables.'

def __init__(self, hps, gpu_mode=True, reuse=False):

    self.hps = hps
    with tf.variable_scope('vector_rnn', reuse=reuse):
        if (not gpu_mode):
            with tf.device('/cpu:0'):
                tf.logging.info('Model    using    cpu.')
                self.build_model(hps)
        else:
            tf.logging.info('Model    using    gpu.')
            self.build_model(hps)
