mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-04 16:04:58 +08:00
Revert "Fixes for CPython int/float tests (#155978)"
This reverts commit 216bd6091ec52865052282eced7e6d5d2a4b4fb4. Reverted https://github.com/pytorch/pytorch/pull/155978 on behalf of https://github.com/huydhn due to Some tests are still failing in trunk ([comment](https://github.com/pytorch/pytorch/pull/155978#issuecomment-3014185210))
This commit is contained in:
@ -374,7 +374,7 @@ def raise_observed_exception(
|
||||
# stack and raise the exception.
|
||||
exception_vt = BuiltinVariable(exc_type).call_function(tx, args or [], kwargs or {}) # type: ignore[arg-type]
|
||||
tx.exn_vt_stack.set_current_exception(exception_vt)
|
||||
raise get_dynamo_observed_exception(exc_type)
|
||||
raise observed_exception_map[exc_type]
|
||||
|
||||
|
||||
def handle_observed_exception(tx: Any) -> None:
|
||||
|
||||
Reference in New Issue
Block a user