MCPcopy Create free account
hub / github.com/pytorch/tutorials / call_fn

Function call_fn

conf.py:71–76  ·  view source on GitHub ↗
(func, args, kwargs, result_queue)

Source from the content-addressed store, hash-verified

69# but with shard sizes of 1), but running sphinx gallery for each file has a
70# ~5min overhead, resulting in the entire suite taking ~2x time
71def call_fn(func, args, kwargs, result_queue):
72 try:
73 result = func(*args, **kwargs)
74 result_queue.put((True, result))
75 except Exception as e:
76 result_queue.put((False, str(e)))
77
78
79def call_in_subprocess(func):

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected