Exemplo n.º 1
0
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_scalar_summary(
       context.context().summary_writer_resource,
       _choose_step(step),
       tag,
       array_ops.identity(tensor),
       name=scope)
Exemplo n.º 2
0
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_scalar_summary(
       context.context().summary_writer_resource,
       _choose_step(step),
       tag,
       array_ops.identity(tensor),
       name=scope)
Exemplo n.º 3
0
 def function(tag, scope):
     # Note the identity to move the tensor to the CPU.
     return gen_summary_ops.write_scalar_summary(
         _summary_state.writer._resource,  # pylint: disable=protected-access
         _choose_step(step),
         tag,
         array_ops.identity(tensor),
         name=scope)
Exemplo n.º 4
0
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_scalar_summary(
       context.context().summary_writer._resource,  # pylint: disable=protected-access
       _choose_step(step),
       tag,
       array_ops.identity(tensor),
       name=scope)