class_docstr: G-BFS Tuner
  Based on paper Compiler-Level Matrix Multiplication Optimization for Deep Learning
  
  Parameters
  ----------
  optimize_mode: str, 'maximize' or 'minimize'
  num_samples: int,
      The random selection parameter rho
class_docstr_tok: ["G-BFS","Tuner","Based","on","paper","Compiler-Level","Matrix","Multiplication","Optimization","for","Deep","Learning","Parameters","--","--","--","--","--","optimize_mode",":","str",",","'maximize","'","or","'minimize'","num_samples",":","int",",","The","random","selection","parameter","rho"]
docstr: Method invoked when a trial reports its final result.
  
  Override of the abstract method in :class:`~nni.tuner.Tuner`.
docstr_tok: ["Method","invoked","when","a","trial","reports","its","final","result",".","Override","of","the","abstract","method","in",":","class",":","`","~nni.tuner.Tuner","`","."]
code: def receive_trial_result(
      self, parameter_id, parameters, value, **kwargs
  ):
      """Method invoked when a trial reports its final result.
  
      Override of the abstract method in :class:`~nni.tuner.Tuner`.
      """
      if isinstance(value, dict):
          value = value["default"]
  
      self.population.append(self.wait_dict[parameter_id], value)
      del self.wait_dict[parameter_id]
  
      if not self.serve_list and not self.wait_dict:
          self.serve_list = self.population.generate()
          if not self.serve_list:
              raise RuntimeError("Tuner stopped since no candidates")
  
      while self.request_list and self.serve_list:
          param_id = self.request_list[0]
          self.wait_dict[param_id] = self.serve_list.pop()
          self.send_trial_callback(
              param_id, self.wait_dict[param_id].pick_out()
          )
          self.request_list.pop(0)
  
imports: import math
  import random
  import logging
  import copy
  import nni
  from nni.tuner import Tuner
label_desc: Use image node_id 5 for calling the G_BFS obj's underlying member method code with example usage: obj.receive_trial_result(parameter_id, parameters, value) without return types