mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Support record_stream in dispatch mode (#99529)
Summary: Issuing a `t.record_stream(s)` call while a `TorchDispatchMode` is active was throwing because PyTorch was unable to convert a c10::Stream back to a Python object. It's now fixed. Fixes https://github.com/pytorch/pytorch/issues/94403 Test Plan: Added a unit test Differential Revision: D45117566 Pull Request resolved: https://github.com/pytorch/pytorch/pull/99529 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
0ac0d9d224
commit
24bf15fe8d
@ -1133,6 +1133,7 @@ SUPPORTED_RETURN_TYPES = {
|
||||
"double",
|
||||
"at::IntArrayRef",
|
||||
"at::ScalarType",
|
||||
"at::Stream",
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user