def __init__(self, v1, template_id, ps_replicas, worker_replicas, training_step, batch_size, interval, task_id, rtimes, tag, bottle, layer1, layer2, layer3, layer4, channel1, channel2, channel3, channel4):
    SubTask.__init__(self, template_id, ps_replicas, worker_replicas, training_step, batch_size, interval, task_id, rtimes, tag)
    self.channel1 = channel1
    self.channel2 = channel2
    self.channel3 = channel3
    self.channel4 = channel4
    self.bottle = bottle
    self.layer1 = layer1
    self.layer2 = layer2
    self.layer3 = layer3
    self.layer4 = layer4
    self.name = ((('res-' + str(self.task_id)) + '-') + str(self.rtimes))
    if (self.bottle == 1):
        self.num_layers = ((3 * (((layer1 + layer4) + layer3) + layer2)) + 2)
    else:
        self.num_layers = ((2 * (((layer1 + layer4) + layer3) + layer2)) + 2)
    self.template = TaskTemplate.RES
    self.v1 = v1
def __init__(self, v1, template_id, ps_replicas, worker_replicas, training_step, batch_size, interval, task_id, rtimes, tag, bottle, layer1, layer2, layer3, layer4, channel1, channel2, channel3, channel4):
    SubTask.__init__(self, template_id, ps_replicas, worker_replicas, training_step, batch_size, interval, task_id, rtimes, tag)
    self.channel1 = channel1
    self.channel2 = channel2
    self.channel3 = channel3
    self.channel4 = channel4
    self.bottle = bottle
    self.layer1 = layer1
    self.layer2 = layer2
    self.layer3 = layer3
    self.layer4 = layer4
    self.name = ((('res-' + str(self.task_id)) + '-') + str(self.rtimes))
    if (self.bottle == 1):
        self.num_layers = ((3 * (((layer1 + layer4) + layer3) + layer2)) + 2)
    else:
        self.num_layers = ((2 * (((layer1 + layer4) + layer3) + layer2)) + 2)
    self.template = TaskTemplate.RES
    self.v1 = v1