pytorch/torch/_dynamo/external_utils.py
Michael Lazos 9c4189f82d [dynamo] Add is_compiling for dynamo (#90329)
`is_tracing` returns True during dynamo tracing and False when run in Eager

Pull Request resolved: https://github.com/pytorch/pytorch/pull/90329
Approved by: https://github.com/jansel
2022-12-09 20:19:41 +00:00

6 lines
105 B
Python

# This module contains functions that *will be allowed* by dynamo
def is_compiling():
return False