MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / mkstemp

Function mkstemp

imperative/python/test/integration/test_trace_dump.py:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18@contextlib.contextmanager
19def mkstemp():
20 fd, path = tempfile.mkstemp()
21 try:
22 os.close(fd)
23 yield path
24 finally:
25 os.remove(path)
26
27
28def minibatch_generator(batch_size):

Callers 3

test_xornet_trace_dumpFunction · 0.70
test_goptions_log_expFunction · 0.50

Calls 2

closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected