Commit 236f11df authored by zhuwenwen's avatar zhuwenwen
Browse files

update rocm Stream

parent 77a29416
...@@ -1428,9 +1428,9 @@ def current_stream() -> torch.cuda.Stream: ...@@ -1428,9 +1428,9 @@ def current_stream() -> torch.cuda.Stream:
# per process # per process
# fix computational precision issue in eager mode # fix computational precision issue in eager mode
# _current_stream_tls.value = torch.cuda.Stream( _current_stream_tls.value = torch.cuda.Stream(
# ) if current_platform.is_rocm() else torch.cuda.current_stream() ) if current_platform.is_rocm() else torch.cuda.current_stream()
_current_stream_tls.value = torch.cuda.current_stream() # _current_stream_tls.value = torch.cuda.current_stream()
return _current_stream_tls.value return _current_stream_tls.value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment