class_docstr: Manages the status/heartbeat monitor for a set of workers.
class_docstr_tok: ["Manages","the","status\/heartbeat","monitor","for","a","set","of","workers","."]
docstr: Construct a new WorkerHeartbeatManager.
  
  (Prefer using `WorkerHeartbeatManager.from_devices` when possible.)
  
  Args:
    session: `tf.compat.v1.Session`, session to use for heartbeat operations.
    devices: `list[string]` Set of devices to connect to.
    heartbeat_ops: `list[tf.Operation]` Heartbeat operations.
    request_placeholder: `tf.Placeholder[String]` Placeholder used to specify
      the WorkerHeartbeatRequest protocol buffer.
docstr_tok: ["Construct","a","new","WorkerHeartbeatManager",".","(","Prefer","using","`","WorkerHeartbeatManager.from_devices","`","when","possible",".",")","Args",":","session",":","`","tf.compat.v1.Session","`",",","session","to","use","for","heartbeat","operations",".","devices",":","`","list","[","string","]","`","Set","of","devices","to","connect","to",".","heartbeat_ops",":","`","list","[","tf.Operation","]","`","Heartbeat","operations",".","request_placeholder",":","`","tf.Placeholder","[","String","]","`","Placeholder","used","to","specify","the","WorkerHeartbeatRequest","protocol","buffer","."]
code: def __init__(
      self, session, devices, heartbeat_ops, request_placeholder
  ):
      """Construct a new WorkerHeartbeatManager.
  
      (Prefer using `WorkerHeartbeatManager.from_devices` when possible.)
  
      Args:
        session: `tf.compat.v1.Session`, session to use for heartbeat operations.
        devices: `list[string]` Set of devices to connect to.
        heartbeat_ops: `list[tf.Operation]` Heartbeat operations.
        request_placeholder: `tf.Placeholder[String]` Placeholder used to specify
          the WorkerHeartbeatRequest protocol buffer.
      """
      self._session = session
      self._devices = devices
      self._ops = heartbeat_ops
      self._request_placeholder = request_placeholder
  
imports: import threading
  import time
  from google.protobuf import text_format
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.util import event_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.tpu.ops import tpu_ops
  from tensorflow.python.training import session_run_hook
  from tensorflow.python.training import training_util
label_desc: Use image node_id 1 to create a new WorkerHeartbeatManager object from inherited base classes: object with example: obj = WorkerHeartbeatManager(session, devices, heartbeat_ops, request_placeholder)