pytorch/torch/_dynamo/external_utils.py

20 lines
334 B
Python

# This module contains functions that *will be allowed* by dynamo
import functools
def is_compiling():
return False
def wrap_inline(fn):
"""
Create an extra frame around fn that is not in skipfiles
"""
@functools.wraps(fn)
def inner(*args, **kwargs):
return fn(*args, **kwargs)
return inner