def __init__(self, config, input_queue=None, async=False):
        """
        :param config: a `TrainConfig` instance
        :param input_queue: a `tf.QueueBase` instance to be used to buffer datapoints.
            Defaults to a FIFO queue of size 100.
        """
        super(QueueInputTrainer, self).__init__(config)
        self.input_vars = self.model.get_input_vars()
        if input_queue is None:
            self.input_queue = tf.FIFOQueue(
                    100, [x.dtype for x in self.input_vars], name='input_queue')
        else:
            self.input_queue = input_queue
        self.async = async
        if self.async:
            assert 1 > self.config.nr_tower
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/train/trainer.py/QueueInputTrainer.__init__/swapped operands of `>`