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

Method get

torch/_inductor/autotune_process.py:174–190  ·  view source on GitHub ↗

Get a response from the child process.

(self)

Source from the content-addressed store, hash-verified

172 self.request_queue.put(obj)
173
174 def get(self) -> Any:
175 """
176 Get a response from the child process.
177 """
178 assert self.process is not None
179 assert self.response_queue is not None
180 while True:
181 try:
182 return self.response_queue.get(timeout=1.0)
183 except queue.Empty:
184 status = self.process.exitcode
185 if status is None:
186 # child process is still running
187 continue
188 # child process crashed
189 self.clear()
190 raise
191
192 def terminate(self) -> None:
193 """

Callers 15

initializeMethod · 0.95
config.pyFile · 0.45
cppClass · 0.45
tritonClass · 0.45
aot_inductorClass · 0.45
cudaClass · 0.45
traceClass · 0.45
run_nodeMethod · 0.45
make_benchmark_fnMethod · 0.45
reportFunction · 0.45
simplify_with_rangesMethod · 0.45
simplify_loopsMethod · 0.45

Calls 1

clearMethod · 0.95

Tested by

no test coverage detected