Exemple #1
0
 def function(tag, scope):
     # Note the identity to move the tensor to the CPU.
     return gen_summary_ops.write_audio_summary(
         _summary_state.writer._resource,  # pylint: disable=protected-access
         _choose_step(step),
         tag,
         array_ops.identity(tensor),
         sample_rate=sample_rate,
         max_outputs=max_outputs,
         name=scope)
Exemple #2
0
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_audio_summary(
       context.context().summary_writer_resource,
       _choose_step(step),
       tag,
       array_ops.identity(tensor),
       sample_rate=sample_rate,
       max_outputs=max_outputs,
       name=scope)
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_audio_summary(
       context.context().summary_writer_resource,
       _choose_step(step),
       tag,
       array_ops.identity(tensor),
       sample_rate=sample_rate,
       max_outputs=max_outputs,
       name=scope)