TFSnippetConfig

class tfsnippet.utils.TFSnippetConfig

Bases: tfsnippet.utils.config_utils.Config

Global configurations of TFSnippet.

Attributes Summary

auto_histogram
check_numerics
enable_assertions
file_cache_checksum

Methods Summary

to_dict() Get the config values as a dict.
update(key_values) Update the config values from key_values.

Attributes Documentation

auto_histogram = <tfsnippet.utils.config_utils.ConfigField object>
check_numerics = <tfsnippet.utils.config_utils.ConfigField object>
enable_assertions = <tfsnippet.utils.config_utils.ConfigField object>
file_cache_checksum = <tfsnippet.utils.config_utils.ConfigField object>

Methods Documentation

to_dict()

Get the config values as a dict.

Returns:The config values.
Return type:dict[str, any]
update(key_values)

Update the config values from key_values.

Parameters:key_values – A dict, or a sequence of (key, value) pairs.