MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / add_logging_file

Function add_logging_file

seq2seq/constrained_seq2seq.py:30–33  ·  view source on GitHub ↗
(training_args)

Source from the content-addressed store, hash-verified

28
29
30def add_logging_file(training_args):
31 fh = logging.FileHandler(os.path.join(training_args.output_dir.rstrip(os.sep) + '.log'))
32 fh.setLevel(logging.DEBUG)
33 logger.addHandler(fh)
34
35
36def decode_tree_str(sequences: Union[List[int], List[List[int]], "np.ndarray", "torch.Tensor"],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected