class_docstr: Test harness for running HMC benchmark tests in graph/eager modes.
class_docstr_tok: ["Test","harness","for","running","HMC","benchmark","tests","in","graph\/eager","modes","."]
code: def __init__(self):
      self._mode = "eager" if tf.executing_eagerly() else "graph"
  
file_path: probability/tensorflow_probability/python/mcmc/eight_schools_hmc.py
imports: import time
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.mcmc import hmc
  from tensorflow_probability.python.mcmc import sample
label_desc: Use image node_id 1 to create a new EightSchoolsHmcBenchmarkTestHarness object from inherited base classes: object with example: obj = EightSchoolsHmcBenchmarkTestHarness()