mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
# Motivation This PR aims to solve the multiple Inheritance problem. Pull Request resolved: https://github.com/pytorch/pytorch/pull/134850 Approved by: https://github.com/yf225, https://github.com/EikanWang
21 lines
435 B
Python
21 lines
435 B
Python
from typing_extensions import deprecated
|
|
|
|
import torch
|
|
|
|
|
|
# Preserved only for BC reasons
|
|
@deprecated(
|
|
"`torch._streambase._StreamBase` is deprecated. Please use `torch.Stream` instead.",
|
|
category=FutureWarning,
|
|
)
|
|
class _StreamBase(torch.Stream):
|
|
pass
|
|
|
|
|
|
@deprecated(
|
|
"`torch._streambase._EventBase` is deprecated. Please use `torch.Event` instead.",
|
|
category=FutureWarning,
|
|
)
|
|
class _EventBase(torch.Event):
|
|
pass
|