class_docstr: Generates prior towers for Phoenix.
class_docstr_tok: ["Generates","prior","towers","for","Phoenix","."]
docstr: Creates the prior for the ensemble.
docstr_tok: ["Creates","the","prior","for","the","ensemble","."]
code: def first_time_chief_generate(
      self,
      input_layer_fn,
      trial_mode,
      logits_dimension,
      hparams,
      run_config,
      is_training,
      trials,
  ):
      """Creates the prior for the ensemble."""
      del input_layer_fn
      my_id = architecture_utils.DirectoryHandler.get_trial_id(
          run_config.model_dir, self._phoenix_spec
      )
  
      prior_build_args = dict(
          is_training=is_training,
          trials=trials,
          logits_dimension=logits_dimension,
          my_id=my_id,
          my_model_dir=run_config.model_dir,
      )
  
      if trial_mode == trial_utils.TrialMode.DISTILLATION:
          return self.build_priors_distillation(**prior_build_args)
  
      if trial_utils.is_nonadaptive_ensemble_search(
          self._phoenix_spec.ensemble_spec
      ):
          return self.build_priors_nonadaptively(**prior_build_args)
  
      if trial_utils.is_adaptive_ensemble_search(
          self._phoenix_spec.ensemble_spec
      ):
          return self.build_priors_adaptively(**prior_build_args)
  
      if trial_utils.is_residual_ensemble_search(
          self._phoenix_spec.ensemble_spec
      ):
          return self.build_priors_adaptively(**prior_build_args)
  
      if trial_utils.is_intermixed_ensemble_search(
          self._phoenix_spec.ensemble_spec
      ):
          return self.build_priors_intermixed(**prior_build_args)
  
      # No ensemble spec or distillation spec was specified.
      architecture_utils.set_number_of_towers(self.generator_name(), 0)
      return []
  
file_path: model_search/model_search/generators/prior_generator.py
imports: import random
  from model_search.architecture import architecture_utils
  from model_search.generators import base_tower_generator
  from model_search.generators import trial_utils
  import tensorflow.compat.v2
label_desc: Use image node_id 10 for calling the PriorGenerator obj's underlying member method code with example usage: obj.first_time_chief_generate(input_layer_fn, trial_mode, logits_dimension, hparams, run_config, is_training, trials) and returns: list, self, self, self, self, self