mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
This reverts commit b1fd7708bd81d8d52908bf4459ed024471abd803. Reverted https://github.com/pytorch/pytorch/pull/137115 on behalf of https://github.com/huydhn due to The top of the stack has been reverted but it leaves trunk in a broken state, so I try to revert the rest of the stack ([comment](https://github.com/pytorch/pytorch/pull/137114#issuecomment-2400765603))
This commit is contained in:
@ -69,6 +69,12 @@ banned_attrs = [
|
||||
if is_tensor_base_attr_getter(fn)
|
||||
]
|
||||
|
||||
# Today set default device is placed in the graph and guarded on separately
|
||||
# so we should not trace through it. In the future we can trace it once
|
||||
# mode tracing is implemented and not put in the graph, but this is more
|
||||
# of a BE project and can be evaluated later
|
||||
IGNORED_MODES = {DeviceContext}
|
||||
|
||||
|
||||
@functools.lru_cache(None)
|
||||
def get_prev_stack_var_name():
|
||||
|
Reference in New Issue
Block a user