latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.monitor API
Functions 3
log_event
functionFull reference ↗- tensorplay.monitor.log_event(event: tensorplay._C._monitor.Event) None
register_event_handler
functionFull reference ↗- tensorplay.monitor.register_event_handler(callback: collections.abc.Callable) int
unregister_event_handler
functionFull reference ↗- tensorplay.monitor.unregister_event_handler(handle: SupportsInt | SupportsIndex) None
Classes 5
Aggregation
classFull reference ↗- class tensorplay.monitor.Aggregation
Members:
NONE
VALUE
MEAN
COUNT
SUM
MAX
MIN
- Aggregation.name -> str
Event
classFull reference ↗- class tensorplay.monitor.Event
Stat
classFull reference ↗- class tensorplay.monitor.Stat
- add(self: tensorplay._C._monitor.Stat, arg0: SupportsFloat | SupportsIndex) None
- count(self: tensorplay._C._monitor.Stat) int
StatResult
classFull reference ↗- class tensorplay.monitor.StatResult
TensorboardEventHandler
classFull reference ↗- class tensorplay.monitor.TensorboardEventHandler(writer)[source]
Forwards known events to a TensorBoard writer as scalars.
The handler accepts any writer exposing
add_scalar(tag, value, walltime=...); onlySTAT_EVENTevents are forwarded, one scalar per data key.
Variables 1
STAT_EVENT
dataFull reference ↗- tensorplay.monitor.STAT_EVENT = 'tensorplay.monitor.Stat'
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Help improve this page
Found an error, an unclear step, or a missing example?

