# ${generated_comment} # mypy: disable-error-code="type-arg" # mypy: allow-untyped-defs # ruff: noqa: F401,PYI054 from collections.abc import Sequence from types import EllipsisType from typing import Any, Callable, Literal, overload, TypeVar import torch from torch import ( contiguous_format, Generator, inf, memory_format, strided, SymInt, Tensor, ) from torch._prims_common import DeviceLikeType from torch.types import ( _bool, _complex, _device, _dtype, _float, _int, _layout, _qscheme, _size, Device, Number, ) ${all_directive} ${function_hints}