(self)
return flops_sum / batches_count
A method that will be available after add_flops_counting_methods() is
    called on a desired net object.
    Returns current mean flops consumption per image.
A method that will be available after add_flops_counting_methods() is
    called on a desired net object.
    Returns current mean flops consumption per image.
A method that will be available after add_flops_counting_methods () is called on a desired net object . Returns current mean flops consumption per image .
def compute_average_flops_cost(self):
    """
    A method that will be available after add_flops_counting_methods() is
    called on a desired net object.
    Returns current mean flops consumption per image.
    """

    batches_count = self.__batch_counter__
    flops_sum = 0
    for module in self.modules():
        if is_supported_instance(module):
            flops_sum += module.__flops__

    return flops_sum / batches_count
def compute_average_flops_cost ( self ) : batches_count = self . __batch_counter__ flops_sum = 0 for module in self . modules ( ) : if is_supported_instance ( module ) : flops_sum += module . __flops__ return flops_sum / batches_count