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 benchmarkGrpcSession(self):
      server = server_lib.Server.create_local_server()
      self._benchmarkFeed(
          "benchmark_session_feed_grpc_4B", server.target, 1, 30000
      )
      session.Session.reset(server.target)
      self._benchmarkFeed(
          "benchmark_session_feed_grpc_4MB",
          server.target,
          1 << 20,
          25000,
      )
      session.Session.reset(server.target)
      self._benchmarkFetch(
          "benchmark_session_fetch_grpc_4B", server.target, 1, 40000
      )
      session.Session.reset(server.target)
      self._benchmarkFetch(
          "benchmark_session_fetch_grpc_4MB",
          server.target,
          1 << 20,
          20000,
      )
      session.Session.reset(server.target)
      self._benchmarkFetchPrebuilt(
          "benchmark_session_fetchprebuilt_grpc_4B",
          server.target,
          1,
          50000,
      )
      session.Session.reset(server.target)
      self._benchmarkFetchPrebuilt(
          "benchmark_session_fetchprebuilt_grpc_4MB",
          server.target,
          1 << 20,
          50000,
      )
      session.Session.reset(server.target)
      self._benchmarkRunOp(
          "benchmark_session_runop_grpc", server.target, 50000
      )
      session.Session.reset(server.target)
      self._benchmarkRunOpPrebuilt(
          "benchmark_session_runopprebuilt_grpc", server.target, 100000
      )
      session.Session.reset(server.target)
  
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 6 for calling the SessionBenchmark obj's underlying member method code with example usage: obj.benchmarkGrpcSession() without return types