MCPcopy Create free account
hub / github.com/pytorch/pytorch / sanitize_flags

Function sanitize_flags

torch/utils/cpp_extension.py:2277–2281  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

2275 `with_cuda`: If we should be compiling with CUDA.
2276 """
2277 def sanitize_flags(flags):
2278 if flags is None:
2279 return []
2280 else:
2281 return [flag.strip() for flag in flags]
2282
2283 cflags = sanitize_flags(cflags)
2284 post_cflags = sanitize_flags(post_cflags)

Callers 1

_write_ninja_fileFunction · 0.85

Calls 1

stripMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…