'Constructs model and return probabilities for given input.'

def __call__(self, x_input):

    reuse = (True if self.built else None)
    with slim.arg_scope(inception.inception_v3_arg_scope()):
        (_, end_points) = inception.inception_v3(x_input, num_classes=self.num_classes, is_training=False, reuse=reuse)
    self.built = True
    output = end_points['Predictions']
    probs = output.op.inputs[0]
    return probs
