class_docstr: This abstract base class defines the API for summary writers.
class_docstr_tok: ["This","abstract","base","class","defines","the","API","for","summary","writers","."]
docstr: Update the summary writer.
  
  :param batch_id: Id of the current mini-batch.
  :param global_step: Global iteration step.
  :param grad: Loss gradients.
  :param patch: Adversarial patch.
  :param estimator: The estimator to evaluate or calculate gradients of `grad` is None to obtain new metrics.
  :param x: Input data.
  :param y: True or target labels.
  :param targeted: Indicates whether the attack is targeted (True) or untargeted (False).
docstr_tok: ["Update","the","summary","writer",".",":","param","batch_id",":","Id","of","the","current","mini-batch",".",":","param","global_step",":","Global","iteration","step",".",":","param","grad",":","Loss","gradients",".",":","param","patch",":","Adversarial","patch",".",":","param","estimator",":","The","estimator","to","evaluate","or","calculate","gradients","of","`","grad","`","is","None","to","obtain","new","metrics",".",":","param","x",":","Input","data",".",":","param","y",":","True","or","target","labels",".",":","param","targeted",":","Indicates","whether","the","attack","is","targeted","(","True",")","or","untargeted","(","False",")","."]
code: def update(
      self,
      batch_id,
      global_step,
      grad=None,
      patch=None,
      estimator=None,
      x=None,
      y=None,
      targeted=False,
      **kwargs,
  ):
      """
      Update the summary writer.
  
      :param batch_id: Id of the current mini-batch.
      :param global_step: Global iteration step.
      :param grad: Loss gradients.
      :param patch: Adversarial patch.
      :param estimator: The estimator to evaluate or calculate gradients of `grad` is None to obtain new metrics.
      :param x: Input data.
      :param y: True or target labels.
      :param targeted: Indicates whether the attack is targeted (True) or untargeted (False).
      """
      raise NotImplementedError
  
file_path: adversarial-robustness-toolbox/art/summary_writer.py
imports: from abc import ABC, abstractmethod
  from math import sqrt
  from typing import Dict, List, Optional, Union
  import numpy
label_desc: Use image node_id 3 for calling the SummaryWriter obj's underlying member method code with example usage: obj.update(batch_id, global_step, grad, patch, estimator, x, y, targeted) without return types