class_docstr: A base class for a monitoring task.
  
  All monitoring tasks are callable objects.
  A descendant class must implement the `run` method, which is the body of the monitoring task.
class_docstr_tok: ["A","base","class","for","a","monitoring","task",".","All","monitoring","tasks","are","callable","objects",".","A","descendant","class","must","implement","the","`","run","`","method",",","which","is","the","body","of","the","monitoring","task","."]
docstr: It calls the 'run' function and sets the current step.
  
  :param step: current step in the optimisation.
  :param kwargs: additional keyword arguments that can be passed
      to the `run` method of the task. This is in particular handy for
      passing keyword argument to the callback of `ScalarToTensorBoard`.
docstr_tok: ["It","calls","the","'run","'","function","and","sets","the","current","step",".",":","param","step",":","current","step","in","the","optimisation",".",":","param","kwargs",":","additional","keyword","arguments","that","can","be","passed","to","the","`","run","`","method","of","the","task",".","This","is","in","particular","handy","for","passing","keyword","argument","to","the","callback","of","`","ScalarToTensorBoard","`","."]
code: def __call__(self, step: int, **kwargs: Any) -> None:
      """
      It calls the 'run' function and sets the current step.
  
      :param step: current step in the optimisation.
      :param kwargs: additional keyword arguments that can be passed
          to the `run` method of the task. This is in particular handy for
          passing keyword argument to the callback of `ScalarToTensorBoard`.
      """
      self.current_step = tf.cast(step, tf.int64)
      self.run(**kwargs)
  
file_path: GPflow/gpflow/monitor/base.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Callable, Collection, Union
  import tensorflow
label_desc: Use image node_id 1 for calling the MonitorTask obj's underlying member method code with example usage: obj.__call__(step) without return types