MCPcopy Create free account
hub / github.com/NVIDIA/nvcomp / fixInput

Function fixInput

benchmarks/text_to_binary.py:38–46  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

36delimiter = ','
37
38def fixInput(val):
39 if val is None:
40 return 0
41 try:
42 retval = int(val)
43 except ValueError:
44 retval = ord(val)
45
46 return retval
47
48
49if len(sys.argv) != 5 and len(sys.argv) != 6:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected