tf.compat.v2.summary.SummaryWriter
Stay organized with collections
Save and categorize content based on your preferences.
Interface representing a stateful summary writer object.
View aliases
Main aliases
`tf.contrib.summary.SummaryWriter`
Methods
as_default
View source
@abc.abstractmethod
@tf_contextlib.contextmanager
as_default()
Returns a context manager that enables summary writing.
close
View source
close()
Flushes and closes the summary writer.
flush
View source
flush()
Flushes any buffered data.
init
View source
init()
Initializes the summary writer.
set_as_default
View source
@abc.abstractmethod
set_as_default()
Enables this summary writer for the current thread.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.compat.v2.summary.SummaryWriter\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L178-L202) |\n\nInterface representing a stateful summary writer object.\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`tf.contrib.summary.SummaryWriter\\`\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `as_default`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L186-L190) \n\n @abc.abstractmethod\n @tf_contextlib.contextmanager\n as_default()\n\nReturns a context manager that enables summary writing.\n\n### `close`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L200-L202) \n\n close()\n\nFlushes and closes the summary writer.\n\n### `flush`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L196-L198) \n\n flush()\n\nFlushes any buffered data.\n\n### `init`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L192-L194) \n\n init()\n\nInitializes the summary writer.\n\n### `set_as_default`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L181-L184) \n\n @abc.abstractmethod\n set_as_default()\n\nEnables this summary writer for the current thread."]]