class_docstr: Monitor Simple Moving Average (SMA), i.e. an average within a sliding window,
  of some tensors.
class_docstr_tok: ["Monitor","Simple","Moving","Average","(","SMA",")",",","i.e",".","an","average","within","a","sliding","window",",","of","some","tensors","."]
docstr: Args:
      tensors (str or [str]): names of tensors
      window_size (int): size of the moving window
docstr_tok: ["Args",":","tensors","(","str","or","[","str","]",")",":","names","of","tensors","window_size","(","int",")",":","size","of","the","moving","window"]
code: def __init__(self, tensors, window_size):
      """
      Args:
          tensors (str or [str]): names of tensors
          window_size (int): size of the moving window
      """
  
      self._tensor_names = [get_op_tensor_name(x)[1] for x in tensors]
      self._display_names = [get_op_tensor_name(x)[0] for x in tensors]
      self._window = int(window_size)
      self._queue = deque(maxlen=window_size)
  
imports: import numpy
  from collections import deque
  from ..compat import tfv1
  from ..tfutils.common import get_op_tensor_name
  from ..utils import logger
  from ..utils.naming import MOVING_SUMMARY_OPS_KEY
  from .base import Callback
label_desc: Use image node_id 1 to create a new SimpleMovingAverage object from inherited base classes: Callback with example: obj = SimpleMovingAverage(tensors, window_size)