class_docstr: A class for visualizing execution timelines of TensorFlow steps.
class_docstr_tok: ["A","class","for","visualizing","execution","timelines","of","TensorFlow","steps","."]
docstr: Generate Chrome Trace snapshot event for a computed Tensor.
  
  Args:
    tensor: A 'TensorTracker' object.
    timestamp:  The timestamp of this snapshot as a long integer.
    pid: The pid assigned for showing the device where this op ran.
    tid: The tid of the thread computing the tensor snapshot.
    value: A JSON-compliant snapshot of the object.
docstr_tok: ["Generate","Chrome","Trace","snapshot","event","for","a","computed","Tensor",".","Args",":","tensor",":","A","'TensorTracker","'","object",".","timestamp",":","The","timestamp","of","this","snapshot","as","a","long","integer",".","pid",":","The","pid","assigned","for","showing","the","device","where","this","op","ran",".","tid",":","The","tid","of","the","thread","computing","the","tensor","snapshot",".","value",":","A","JSON-compliant","snapshot","of","the","object","."]
code: def _emit_tensor_snapshot(
      self,
      tensor: _TensorTracker,
      timestamp: int,
      pid: int,
      tid: int,
      value: step_stats_pb2.NodeOutput,
  ) -> None:
      """Generate Chrome Trace snapshot event for a computed Tensor.
  
      Args:
        tensor: A 'TensorTracker' object.
        timestamp:  The timestamp of this snapshot as a long integer.
        pid: The pid assigned for showing the device where this op ran.
        tid: The tid of the thread computing the tensor snapshot.
        value: A JSON-compliant snapshot of the object.
      """
      desc = str(value.tensor_description).replace('"', "")
      snapshot = {"tensor_description": desc}
      self._chrome_trace.emit_obj_snapshot(
          "Tensor",
          tensor.name,
          timestamp,
          pid,
          tid,
          tensor.object_id,
          snapshot,
      )
  
imports: import collections
  import copy
  import json
  import re
  from typing import Any, Dict, List, Optional, Tuple, Union
  from tensorflow.core.framework import step_stats_pb2
  from tensorflow.python.platform import build_info
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 8 for calling the Timeline obj's underlying member method code with example usage: obj._emit_tensor_snapshot(tensor, timestamp, pid, tid, value) without return types