MCPcopy Create free account
hub / github.com/CompVis/zigma / none_or_str

Function none_or_str

utils/train_utils_args.py:6–9  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4 if rank == 0:
5 logging.info(log)
6def none_or_str(value):
7 if value == 'None':
8 return None
9 return value
10
11def parse_transport_args(parser):
12 group = parser.add_argument_group("Transport arguments")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected