def inference(self, inputs):
    outputs = inputs
    down_outputs = []
    for layer_index in range((self.conf.network_depth - 1)):
        is_first = (True if (not layer_index) else False)
        name = ('down%s' % layer_index)
        outputs = self.build_down_block(outputs, name, down_outputs, is_first)
    outputs = self.build_bottom_block(outputs, 'bottom')
    for layer_index in range((self.conf.network_depth - 2), (- 1), (- 1)):
        is_final = (True if (layer_index == 0) else False)
        name = ('up%s' % layer_index)
        down_inputs = down_outputs[layer_index]
        outputs = self.build_up_block(outputs, down_inputs, name, is_final)
    return outputs
def inference(self, inputs):
    outputs = inputs
    down_outputs = []
    for layer_index in range((self.conf.network_depth - 1)):
        is_first = (True if (not layer_index) else False)
        name = ('down%s' % layer_index)
        outputs = self.build_down_block(outputs, name, down_outputs, is_first)
    outputs = self.build_bottom_block(outputs, 'bottom')
    for layer_index in range((self.conf.network_depth - 2), (- 1), (- 1)):
        is_final = (True if (layer_index == 0) else False)
        name = ('up%s' % layer_index)
        down_inputs = down_outputs[layer_index]
        outputs = self.build_up_block(outputs, down_inputs, name, is_final)
    return outputs