class_docstr: TFMA benchmark.
class_docstr_tok: ["TFMA","benchmark","."]
docstr: Benchmark PredictionsExtractor "manually".
docstr_tok: ["Benchmark","PredictionsExtractor","``","manually","''","."]
code: def _runPredictionsExtractorManualActuation(self, multi_model):
      """Benchmark PredictionsExtractor "manually"."""
      self._init_model(multi_model, validation=False)
      extracts = self._readDatasetIntoBatchedExtracts()
      num_examples = sum(
          [
              e[constants.ARROW_RECORD_BATCH_KEY].num_rows
              for e in extracts
          ]
      )
      extracts = [
          self._extract_features_and_labels(e) for e in extracts
      ]
  
      prediction_do_fn = model_util.ModelSignaturesDoFn(
          model_specs=self._eval_config.model_specs,
          eval_shared_models=self._eval_shared_models,
          output_keypath=[constants.PREDICTIONS_KEY],
          signature_names={
              name: [None] for name in self._eval_shared_models
          },
          prefer_dict_outputs=False,
      )
      prediction_do_fn.setup()
  
      start = time.time()
      for _ in range(_ITERS):
          predict_result = []
          for e in extracts:
              predict_result.extend(prediction_do_fn.process(e))
      end = time.time()
      delta = end - start
      self.report_benchmark(
          iters=_ITERS,
          wall_time=delta,
          extras={"num_examples": num_examples},
      )
  
imports: import copy
  import time
  import apache_beam
  import numpy
  import tensorflow
  import tensorflow_model_analysis
  from tensorflow_model_analysis.evaluators import metrics_plots_and_validations_evaluator
  from tensorflow_model_analysis.evaluators import poisson_bootstrap
  from tensorflow_model_analysis.extractors import example_weights_extractor
  from tensorflow_model_analysis.extractors import features_extractor
  from tensorflow_model_analysis.extractors import labels_extractor
  from tensorflow_model_analysis.extractors import legacy_input_extractor
  from tensorflow_model_analysis.extractors import predictions_extractor
  from tensorflow_model_analysis.extractors import unbatch_extractor
  import tfx
  from tfx.benchmarks import benchmark_utils
  from tfx.benchmarks import benchmark_base
  from tfx_bsl.coders import example_coder
  from tfx_bsl.tfxio import record_based_tfxio
  from tfx_bsl.tfxio import test_util
label_desc: Use image node_id 18 for calling the TFMAV2BenchmarkBase obj's underlying member method code with example usage: obj._runPredictionsExtractorManualActuation(multi_model) without return types