parameters: (self, func_name, ctx, number, repeat=1)
docstring: Get an evaluator that measures time cost of running function.
  
          Parameters
          ----------
          func_name: str
              The name of the function in the module.
  
          ctx: TVMContext
              The context we should run this function on.
  
          number: int
              The number of steps used in measuring each time interval
  
          repeat: int, optional
              Number of times to run the timer measurement
              If repeat equals 3, then we will get 3 numbers in the ProfileResult.
  
          Note
          ----
          The function will be invoked  repeat * number + 1 times,
          with the first call discarded in case there is lazy initialization.
  
          Returns
          -------
          ftimer : Function
              The function that takes same argument as func
              and return a float representing seconds per function call.
docstring_summary: Get an evaluator that measures time cost of running function.
docstring_tokens: Get an evaluator that measures time cost of running function .
function: def time_evaluator(self, func_name, ctx, number, repeat=1):
          """Get an evaluator that measures time cost of running function.
  
          Parameters
          ----------
          func_name: str
              The name of the function in the module.
  
          ctx: TVMContext
              The context we should run this function on.
  
          number: int
              The number of steps used in measuring each time interval
  
          repeat: int, optional
              Number of times to run the timer measurement
              If repeat equals 3, then we will get 3 numbers in the ProfileResult.
  
          Note
          ----
          The function will be invoked  repeat * number + 1 times,
          with the first call discarded in case there is lazy initialization.
  
          Returns
          -------
          ftimer : Function
              The function that takes same argument as func
              and return a float representing seconds per function call.
          """
          try:
              feval = _RPCTimeEvaluator(
                  self, func_name, ctx.device_type, ctx.device_id, number, repeat)
  
              def evaluator(*args):
                  """Internal wrapped evaluator."""
                  # Wrap feval so we can add more stats in future.
                  blob = feval(*args)
                  fmt = "@" + ("d" * repeat)
                  results = struct.unpack(fmt, blob)
                  mean = sum(results) / float(repeat)
                  return ProfileResult(mean=mean, results=results)
  
              return evaluator
          except NameError:
              raise NameError("time_evaluate is only supported when RPC is enabled")
function_tokens: def time_evaluator ( self , func_name , ctx , number , repeat = 1 ) : try : feval = _RPCTimeEvaluator ( self , func_name , ctx . device_type , ctx . device_id , number , repeat ) def evaluator ( * args ) : """Internal wrapped evaluator.""" # Wrap feval so we can add more stats in future. blob = feval ( * args ) fmt = "@" + ( "d" * repeat ) results = struct . unpack ( fmt , blob ) mean = sum ( results ) / float ( repeat ) return ProfileResult ( mean = mean , results = results ) return evaluator except NameError : raise NameError ( "time_evaluate is only supported when RPC is enabled" )