MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / record

Function record

tensorflow/python/ops/summary_ops_v2.py:630–642  ·  view source on GitHub ↗

Record the actual summary and return True.

()

Source from the content-addressed store, hash-verified

628 serialized_metadata = metadata
629
630 def record():
631 """Record the actual summary and return True."""
632 # Note the identity to move the tensor to the CPU.
633 with ops.device("cpu:0"):
634 write_summary_op = gen_summary_ops.write_summary(
635 context.context().summary_writer._resource, # pylint: disable=protected-access
636 step,
637 array_ops.identity(tensor),
638 tag,
639 serialized_metadata,
640 name=scope)
641 with ops.control_dependencies([write_summary_op]):
642 return constant_op.constant(True)
643
644 with ops.device("cpu:0"):
645 op = smart_cond.smart_cond(

Callers

nothing calls this directly

Calls 7

functionFunction · 0.70
deviceMethod · 0.45
contextMethod · 0.45
identityMethod · 0.45
control_dependenciesMethod · 0.45
constantMethod · 0.45
name_scopeMethod · 0.45

Tested by

no test coverage detected