content/test/gpu/gold_inexact_matching/local_minima_parameter_optimizer.py
def _UpdateMostPermissiveFailedParameters(self, parameters):
    """Updates the array of most permissive failed parameters.

    This is used in conjunction with _ParametersAreGuaranteedToFail to prune
    ParameterSets without having to actually test them. Values are updated if
    |parameters| shares two parameters with a a previously failed ParameterSet,
    but |parameters|' third parameter is more permissive.

    Args:
      parameters: A ParameterSet to pull updated values from.
    """
    permissive_max_diff = self._permissive_max_diff_map.setdefault(
        parameters.delta_threshold, {}).get(parameters.edge_threshold, -1)
    permissive_max_diff = max(permissive_max_diff, parameters.max_diff)
    self._permissive_max_diff_map[parameters.delta_threshold][
        parameters.edge_threshold] = permissive_max_diff

    permissive_delta = self._permissive_delta_map.setdefault(
        parameters.max_diff, {}).get(parameters.edge_threshold, -1)
    permissive_delta = max(permissive_delta, parameters.delta_threshold)
    self._permissive_delta_map[parameters.max_diff][
        parameters.edge_threshold] = permissive_delta

    permissive_edge = self._permissive_edge_map.setdefault(
        parameters.max_diff, {}).get(parameters.delta_threshold, sys.maxsize)
    permissive_edge = min(permissive_edge, parameters.edge_threshold)
    self._permissive_edge_map[parameters.max_diff][
        parameters.delta_threshold] = permissive_edge
Updates the array of most permissive failed parameters.

    This is used in conjunction with _ParametersAreGuaranteedToFail to prune
    ParameterSets without having to actually test them. Values are updated if
    |parameters| shares two parameters with a a previously failed ParameterSet,
    but |parameters|' third parameter is more permissive.

    Args:
      parameters: A ParameterSet to pull updated values from.
    
Updates the array of most permissive failed parameters.
This is used in conjunction with _ParametersAreGuaranteedToFail to prune
ParameterSets without having to actually test them. Values are updated if
|parameters| shares two parameters with a a previously failed ParameterSet,
but |parameters|' third parameter is more permissive.
Updates the array of most permissive failed parameters . This is used in conjunction with _ParametersAreGuaranteedToFail to prune ParameterSets without having to actually test them . Values are updated if |parameters| shares two parameters with a a previously failed ParameterSet but |parameters| ' third parameter is more permissive .
def _UpdateMostPermissiveFailedParameters(self, parameters):
    permissive_max_diff = self._permissive_max_diff_map.setdefault(
        parameters.delta_threshold, {}).get(parameters.edge_threshold, -1)
    permissive_max_diff = max(permissive_max_diff, parameters.max_diff)
    self._permissive_max_diff_map[parameters.delta_threshold][
        parameters.edge_threshold] = permissive_max_diff
    permissive_delta = self._permissive_delta_map.setdefault(
        parameters.max_diff, {}).get(parameters.edge_threshold, -1)
    permissive_delta = max(permissive_delta, parameters.delta_threshold)
    self._permissive_delta_map[parameters.max_diff][
        parameters.edge_threshold] = permissive_delta
    permissive_edge = self._permissive_edge_map.setdefault(
        parameters.max_diff, {}).get(parameters.delta_threshold, sys.maxsize)
    permissive_edge = min(permissive_edge, parameters.edge_threshold)
    self._permissive_edge_map[parameters.max_diff][
        parameters.delta_threshold] = permissive_edge
def _UpdateMostPermissiveFailedParameters ( self , parameters ) : permissive_max_diff = self . _permissive_max_diff_map . setdefault ( parameters . delta_threshold , { } ) . get ( parameters . edge_threshold , - 1 ) permissive_max_diff = max ( permissive_max_diff , parameters . max_diff ) self . _permissive_max_diff_map [ parameters . delta_threshold ] [ parameters . edge_threshold ] = permissive_max_diff permissive_delta = self . _permissive_delta_map . setdefault ( parameters . max_diff , { } ) . get ( parameters . edge_threshold , - 1 ) permissive_delta = max ( permissive_delta , parameters . delta_threshold ) self . _permissive_delta_map [ parameters . max_diff ] [ parameters . edge_threshold ] = permissive_delta permissive_edge = self . _permissive_edge_map . setdefault ( parameters . max_diff , { } ) . get ( parameters . delta_threshold , sys . maxsize ) permissive_edge = min ( permissive_edge , parameters . edge_threshold ) self . _permissive_edge_map [ parameters . max_diff ] [ parameters . delta_threshold ] = permissive_edge
Updates the array of most permissive failed parameters.
Updates the array of most permissive failed parameters .
"""Updates the array of most permissive failed parameters.

    This is used in conjunction with _ParametersAreGuaranteedToFail to prune
    ParameterSets without having to actually test them. Values are updated if
    |parameters| shares two parameters with a a previously failed ParameterSet,
    but |parameters|' third parameter is more permissive.

    Args:
      parameters: A ParameterSet to pull updated values from.
    """
self
parameters
A ParameterSet to pull updated values from.
A ParameterSet to pull updated values from .