Esempio n. 1
0
 def write_mesh_event(self, *args, **kwargs):
     kwargs.setdefault("step", 1)
     writer = tf2.summary.create_file_writer(self.get_temp_dir())
     with writer.as_default():
         summary.mesh(*args, **kwargs)
     writer.close()
Esempio n. 2
0
 def graph_fn():
     # Recreate the active scope inside the defun since it won't propagate.
     with tf.name_scope(scope):
         summary.mesh(*args, **kwargs)