Utils module

General utility functions

class svb.utils.LogBase(**kwargs)[source]

Base class that provides a named log and the ability to log tensors easily

log_tf(tensor, level=10, **kwargs)[source]

Log a tensor

Parameters:
  • tensor – tf.Tensor
  • level – Logging level (default: DEBUG)

Keyword arguments:

Parameters:
  • summarize – Number of entries to include (default 100)
  • force – If True, always log this tensor regardless of log level
  • shape – If True, precede tensor with its shape
svb.utils.ValueList(value_type)[source]

Class used with argparse for options which can be given as a comma separated list