Rate this Page

torch.compiler.skip_guard_on_globals_unsafe#

torch.compiler.skip_guard_on_globals_unsafe(guard_entries)[source]#

A common function to skip guards on all globals. This is unsafe to use by default. But if you don’t expect any changes in the globals, you can just keep the tensor guards.

>> opt_mod = torch.compile( >> mod, >> options={“guard_filter_fn”: torch.compiler.skip_guard_on_globals}, >> )

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources
Morty Proxy This is a proxified and sanitized view of the page, visit original site.