sugartensor.sg_logging module

sugartensor.sg_logging.sg_debug(msg, *args, **kwargs)[source]
sugartensor.sg_logging.sg_error(msg, *args, **kwargs)[source]
sugartensor.sg_logging.sg_fatal(msg, *args, **kwargs)[source]
sugartensor.sg_logging.sg_info(msg, *args, **kwargs)[source]
sugartensor.sg_logging.sg_summary_activation(tensor, prefix=None, name=None)[source]

Register tensor to summary report as activation

Args:
tensor: A Tensor to log as activation prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_summary_audio(tensor, sample_rate=16000, prefix=None, name=None)[source]

Register tensor to summary report as audio

Args:
tensor: A Tensor to log as audio sample_rate : An int. Sample rate to report. Default is 16000. prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_summary_gradient(tensor, gradient, prefix=None, name=None)[source]

Register tensor to summary report as gradient

Args:
tensor: A Tensor to log as gradient gradient: A 0-D Tensor. A gradient to log prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_summary_image(tensor, prefix=None, name=None)[source]

Register tensor to summary report as image

Args:
tensor: A tensor to log as image prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_summary_loss(tensor, prefix='losses', name=None)[source]

Register tensor to summary report as loss

Args:
tensor: A Tensor to log as loss prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_summary_metric(tensor, prefix='metrics', name=None)[source]

Register tensor to summary report as metric

Args:
tensor: A Tensor to log as metric prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_summary_param(tensor, prefix=None, name=None)[source]

Register tensor to summary report as parameters

Args:
tensor: A Tensor to log as parameters prefix: A string. A prefix to display in the tensor board web UI. name: A string. A name to display in the tensor board web UI.
Returns:
None
sugartensor.sg_logging.sg_verbosity(verbosity=0)[source]
sugartensor.sg_logging.sg_warn(msg, *args, **kwargs)[source]