MCPcopy Index your code
hub / github.com/pytorch/pytorch / run

Method run

caffe2/python/utils.py:296–312  ·  view source on GitHub ↗
(cls, func)

Source from the content-addressed store, hash-verified

294
295 @classmethod
296 def run(cls, func):
297 try:
298 return func()
299 except KeyboardInterrupt:
300 raise
301 except Exception:
302 import pdb
303
304 print(
305 'Entering interactive debugger. Type "bt" to print '
306 'the full stacktrace. Type "help" to see command listing.')
307 print(sys.exc_info()[1])
308 print
309
310 pdb.post_mortem()
311 sys.exit(1)
312 raise
313
314
315def raiseIfNotEqual(a, b, msg):

Callers 15

verify_costMethod · 0.45
benchmarkFunction · 0.45
_test_nccl_syncMethod · 0.45
test_timingsMethod · 0.45
sample.pyFile · 0.45
benchmarkFunction · 0.45
test_relu_correctnessMethod · 0.45
test_timingsMethod · 0.45
test_relu_timingsMethod · 0.45

Calls 2

funcFunction · 0.70
exitMethod · 0.45

Tested by 15

verify_costMethod · 0.36
benchmarkFunction · 0.36
_test_nccl_syncMethod · 0.36
test_timingsMethod · 0.36
benchmarkFunction · 0.36
test_relu_correctnessMethod · 0.36
test_timingsMethod · 0.36
test_relu_timingsMethod · 0.36
fetch_totalMethod · 0.36