def get_inputs_shape_dictionary(inputs):
    """
    Function that returns a dictionary containing the name of the output layer
    and the corresponding shape. It returns also the name of the input layer having
    the smallest input height x width.
    Params:
        - inputs: Dictionary of tensors.
    Returns:
        - Dictionary of tuples (shapes).
    """
    shapes = {}
    smallest = 100000
    smallest_shape = None
    for key, input in inputs.items():
        input_h = input.get_shape().as_list()[1]
        if input_h < smallest:
            smallest_shape = tuple(input.get_shape().as_list())
        shapes[key] = tuple(input.get_shape().as_list())

    return shapes, smallest_shape