tfplot/summary.py
def plot(name, plot_func, in_tensors, collections=None, **kwargs):
    """
    Create a TensorFlow op that outpus a `Summary` protocol buffer,
    to which a single plot operation is executed (i.e. image summary).

    Basically, it is a one-liner wrapper of ``tfplot.ops.plot()`` and
    ``tf.summary.image()`` calls.

    The generated `Summary` object contains single image summary value
    of the image of the plot drawn.

    Args:
      name: The name of scope for the generated ops and the summary op.
        Will also serve as a series name prefix in TensorBoard.
      plot_func: A python function or callable, specifying the plot operation
        as in :func:`tfplot.plot`. See the documentation at :func:`tfplot.plot`.
      in_tensors: A list of `Tensor` objects, as in :func:`~tfplot.plot`.
      collections: Optional list of ``ops.GraphKeys``.  The collections to add the
        summary to.  Defaults to ``[_ops.GraphKeys.SUMMARIES]``.
      kwargs: Optional keyword arguments passed to :func:`~tfplot.plot`.

    Returns:
      A scalar `Tensor` of type `string`. The serialized `Summary` protocol
      buffer (tensorflow operation).
    """
    with tf.name_scope(name):
        im = ops.plot(plot_func, in_tensors, **kwargs)
        im = tf.expand_dims(im, axis=0)
        summary = summary_image_v1(name="ImageSummary", tensor=im, collections=collections)
    return summary

    Create a TensorFlow op that outpus a `Summary` protocol buffer,
    to which a single plot operation is executed (i.e. image summary).

    Basically, it is a one-liner wrapper of ``tfplot.ops.plot()`` and
    ``tf.summary.image()`` calls.

    The generated `Summary` object contains single image summary value
    of the image of the plot drawn.

    Args:
      name: The name of scope for the generated ops and the summary op.
        Will also serve as a series name prefix in TensorBoard.
      plot_func: A python function or callable, specifying the plot operation
        as in :func:`tfplot.plot`. See the documentation at :func:`tfplot.plot`.
      in_tensors: A list of `Tensor` objects, as in :func:`~tfplot.plot`.
      collections: Optional list of ``ops.GraphKeys``.  The collections to add the
        summary to.  Defaults to ``[_ops.GraphKeys.SUMMARIES]``.
      kwargs: Optional keyword arguments passed to :func:`~tfplot.plot`.

    Returns:
      A scalar `Tensor` of type `string`. The serialized `Summary` protocol
      buffer (tensorflow operation).
    
Create a TensorFlow op that outpus a `Summary` protocol buffer,
to which a single plot operation is executed .



The generated `Summary` object contains single image summary value
of the image of the plot drawn.
Create a TensorFlow op that outpus a ` Summary ` protocol buffer to which a single plot operation is executed . The generated ` Summary ` object contains single image summary value of the image of the plot drawn .
def plot(name, plot_func, in_tensors, collections=None, **kwargs):
    with tf.name_scope(name):
        im = ops.plot(plot_func, in_tensors, **kwargs)
        im = tf.expand_dims(im, axis=0)
        summary = summary_image_v1(name="ImageSummary", tensor=im, collections=collections)
    return summary
def plot ( name , plot_func , in_tensors , collections = None , ** kwargs ) : with tf . name_scope ( name ) : im = ops . plot ( plot_func , in_tensors , ** kwargs ) im = tf . expand_dims ( im , axis = 0 ) summary = summary_image_v1 ( name = "ImageSummary" , tensor = im , collections = collections ) return summary
Create a TensorFlow op that outpus a `Summary` protocol buffer,
to which a single plot operation is executed (i.e.
Create a TensorFlow op that outpus a ` Summary ` protocol buffer to which a single plot operation is executed ( i . e .
"""
    Create a TensorFlow op that outpus a `Summary` protocol buffer,
    to which a single plot operation is executed (i.e. image summary).

    Basically, it is a one-liner wrapper of ``tfplot.ops.plot()`` and
    ``tf.summary.image()`` calls.

    The generated `Summary` object contains single image summary value
    of the image of the plot drawn.

    Args:
      name: The name of scope for the generated ops and the summary op.
        Will also serve as a series name prefix in TensorBoard.
      plot_func: A python function or callable, specifying the plot operation
        as in :func:`tfplot.plot`. See the documentation at :func:`tfplot.plot`.
      in_tensors: A list of `Tensor` objects, as in :func:`~tfplot.plot`.
      collections: Optional list of ``ops.GraphKeys``.  The collections to add the
        summary to.  Defaults to ``[_ops.GraphKeys.SUMMARIES]``.
      kwargs: Optional keyword arguments passed to :func:`~tfplot.plot`.

    Returns:
      A scalar `Tensor` of type `string`. The serialized `Summary` protocol
      buffer (tensorflow operation).
    """
A scalar `Tensor` of type `string`. The serialized `Summary` protocol
buffer (tensorflow operation).
A scalar ` Tensor ` of type ` string ` . The serialized ` Summary ` protocol buffer ( tensorflow operation ) .
name
The name of scope for the generated ops and the summary op.
Will also serve as a series name prefix in TensorBoard.
The name of scope for the generated ops and the summary op . Will also serve as a series name prefix in TensorBoard .
plot_func
A python function or callable, specifying the plot operation
as in :func:`tfplot.plot`. See the documentation at :func:`tfplot.plot`.
A python function or callable specifying the plot operation as in : func : ` tfplot . plot ` . See the documentation at : func : ` tfplot . plot ` .
in_tensors
A list of `Tensor` objects, as in :func:`~tfplot.plot`.
A list of ` Tensor ` objects as in : func : ` ~tfplot . plot ` .
collections
Optional list of ``ops.GraphKeys``.  The collections to add the
summary to.  Defaults to ``[_ops.GraphKeys.SUMMARIES]``.
Optional list of ` ` ops . GraphKeys ` ` . The collections to add the summary to . Defaults to ` ` [ _ops . GraphKeys . SUMMARIES ] ` ` .
kwargs
Optional keyword arguments passed to :func:`~tfplot.plot`.
Optional keyword arguments passed to : func : ` ~tfplot . plot ` .