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

Function pretty_print

recipes_source/recipes/benchmark.py:744–746  ·  view source on GitHub ↗

Import machinery for ``cpp_lib.so`` can get repetitive to look at.

(result)

Source from the content-addressed store, hash-verified

742
743import textwrap
744def pretty_print(result):
745 """Import machinery for ``cpp_lib.so`` can get repetitive to look at."""
746 print(repr(result).replace(textwrap.indent(module_import_str, " "), " import cpp_lib"))
747
748
749t_baseline = benchmark.Timer(

Callers 1

benchmark.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected