'Returns a duplicated `TrainOp`'

def duplicate(self):

    return TrainOp(self.loss, optimizer=self.optimizer, batch_size=self.batch_size, ema=self.ema, metric=self.metric, trainable_vars=self.train_vars, shuffle=self.shuffle)
