class_docstr: Evaluate tensorflow DecodeJpegOp performance.
class_docstr_tok: ["Evaluate","tensorflow","DecodeJpegOp","performance","."]
docstr: Evaluate single DecodeImageOp for large size image.
docstr_tok: ["Evaluate","single","DecodeImageOp","for","large","size","image","."]
code: def benchmarkDecodeJpegLarge(self):
      """Evaluate single DecodeImageOp for large size image."""
      num_iters = 10
      crop_window = [10, 10, 50, 50]
      tile = [4, 4, 1]
      for parallelism in [1, 100]:
          # Tile the medium size image to composite a larger fake image.
          duration_decode = self._evalDecodeJpeg(
              "medium.jpg", parallelism, num_iters, tile
          )
          duration_decode_crop = self._evalDecodeJpeg(
              "medium.jpg",
              parallelism,
              num_iters,
              False,
              crop_window,
              tile,
          )
          duration_decode_after_crop = self._evalDecodeJpeg(
              "medium.jpg",
              parallelism,
              num_iters,
              True,
              crop_window,
              tile,
          )
          self.report_benchmark(
              name="decode_jpeg_large_p%d" % (parallelism),
              iters=num_iters,
              wall_time=duration_decode,
          )
          self.report_benchmark(
              name="decode_crop_jpeg_large_p%d" % (parallelism),
              iters=num_iters,
              wall_time=duration_decode_crop,
          )
          self.report_benchmark(
              name="decode_after_crop_jpeg_large_p%d" % (parallelism),
              iters=num_iters,
              wall_time=duration_decode_after_crop,
          )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/image_ops/decode_jpeg_op_test.py
imports: import os
  import time
  from tensorflow.python.client import session
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import image_ops
  from tensorflow.python.ops import io_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the DecodeJpegBenchmark obj's underlying member method code with example usage: obj.benchmarkDecodeJpegLarge() without return types