bundles / scipy 1.17.1 / scipy / _lib / array_api_compat / common / _helpers / is_torch_namespace
_lru_cache_wrapper
scipy._lib.array_api_compat.common._helpers:is_torch_namespace
Signature
def is_torch_namespace(xp: Namespace) → boolSummary
Returns True if xp is a PyTorch namespace.
Extended Summary
This includes both PyTorch itself and the version wrapped by array-api-compat.
See also
Aliases
scipy.signal._signaltools.is_torch