class_docstr: Tests and benchmarks for interacting with the `tf.compat.v1.Session`.
class_docstr_tok: ["Tests","and","benchmarks","for","interacting","with","the","`","tf.compat.v1.Session","`","."]
code: def benchmarkDirectSession(self):
      self._benchmarkFeed(
          "benchmark_session_feed_direct_4B", "", 1, 80000
      )
      self._benchmarkFeed(
          "benchmark_session_feed_direct_4MB", "", 1 << 20, 20000
      )
      self._benchmarkFetch(
          "benchmark_session_fetch_direct_4B", "", 1, 100000
      )
      self._benchmarkFetch(
          "benchmark_session_fetch_direct_4MB", "", 1 << 20, 20000
      )
      self._benchmarkFetchPrebuilt(
          "benchmark_session_fetchprebuilt_direct_4B", "", 1, 200000
      )
      self._benchmarkFetchPrebuilt(
          "benchmark_session_fetchprebuilt_direct_4MB",
          "",
          1 << 20,
          200000,
      )
      self._benchmarkRunOp("benchmark_session_runop_direct", "", 200000)
      self._benchmarkRunOpPrebuilt(
          "benchmark_session_runopprebuilt_direct", "", 200000
      )
  
file_path: tensorflow/tensorflow/python/client/session_benchmark.py
imports: import time
  import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 7 for calling the SessionBenchmark obj's underlying member method code with example usage: obj.benchmarkDirectSession() without return types