You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
435 B
21 lines
435 B
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
|