Exemplo n.º 1
0
def import_event(tensor, name=None):
  """Writes a `tf.Event` binary proto.

  This can be used to import existing event logs into a new summary writer sink.
  Please note that this is lower level than the other summary functions and
  will ignore the `tf.summary.should_record_summaries` setting.

  Args:
    tensor: A `tf.Tensor` of type `string` containing a serialized
      `tf.Event` proto.
    name: A name for the operation (optional).

  Returns:
    The created `tf.Operation`.
  """
  return gen_summary_ops.import_event(
      context.context().summary_writer_resource, tensor, name=name)
Exemplo n.º 2
0
def import_event(tensor, name=None):
  """Writes a `tf.Event` binary proto.

  This can be used to import existing event logs into a new summary writer sink.
  Please note that this is lower level than the other summary functions and
  will ignore the `tf.summary.should_record_summaries` setting.

  Args:
    tensor: A `tf.Tensor` of type `string` containing a serialized
      `tf.Event` proto.
    name: A name for the operation (optional).

  Returns:
    The created `tf.Operation`.
  """
  return gen_summary_ops.import_event(
      context.context().summary_writer_resource, tensor, name=name)
Exemplo n.º 3
0
def import_event(tensor, name=None):
    """Writes a `tf.Event` binary proto.

  When using create_db_writer(), this can be used alongside
  `tf.TFRecordReader` to load event logs into the database. Please
  note that this is lower level than the other summary functions and
  will ignore any conditions set by methods like
  `tf.contrib.summary.should_record_summaries`.

  Args:
    tensor: A `tf.Tensor` of type `string` containing a serialized
      `tf.Event` proto.
    name: A name for the operation (optional).

  Returns:
    The created `tf.Operation`.
  """
    return gen_summary_ops.import_event(
        context.context().summary_writer_resource, tensor, name=name)
Exemplo n.º 4
0
def import_event(tensor, name=None):
  """Writes a @{tf.Event} binary proto.

  When using create_db_writer(), this can be used alongside
  @{tf.TFRecordReader} to load event logs into the database. Please
  note that this is lower level than the other summary functions and
  will ignore any conditions set by methods like
  @{tf.contrib.summary.should_record_summaries}.

  Args:
    tensor: A @{tf.Tensor} of type `string` containing a serialized
      @{tf.Event} proto.
    name: A name for the operation (optional).

  Returns:
    The created @{tf.Operation}.
  """
  return gen_summary_ops.import_event(
      context.context().summary_writer_resource, tensor, name=name)