text: # -*- coding:utf-8 -*-
  
  # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the MIT License.
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  # MIT License for more details.
  
  """Defined Configs."""
  
  from vega.search_space.search_algs import EAConfig
  
  
  class PrunePolicyConfig(EAConfig):
      """Prune Policy Config."""
  
      length = 464
      num_generation = 31
      num_individual = 4
      random_models = 32
  
  
  class PruneConfig(object):
      """Prune Config."""
  
      codec = 'PruneCodec'
      policy = PrunePolicyConfig
      objective_keys = ['accuracy', 'gflops']
  