MCPcopy Index your code
hub / github.com/modelscope/FunASR / close

Method close

funasr/train_utils/trainer.py:749–763  ·  view source on GitHub ↗

Close. Args: writer: TODO.

(self, writer=None)

Source from the content-addressed store, hash-verified

747 )
748
749 def close(self, writer=None):
750
751 """Close.
752
753 Args:
754 writer: TODO.
755 """
756 if self.use_ddp or self.use_fsdp:
757 dist.barrier()
758
759 if writer is not None:
760 writer.close()
761
762 if self.use_ddp or self.use_fsdp:
763 torch.distributed.destroy_process_group()

Callers 15

mainFunction · 0.95
mainFunction · 0.95
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
generator_mainFunction · 0.45
compute_werFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected