{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/11"}],"enrichment":{"capability":"Provides a safe wrapper around PyTorch's scan operator that checks backward compatibility across devices and PyTorch versions, with a fallback eager implementation for PyTorch 2.7.","skillfed_tags":["pytorch-compat","higher-order-ops"],"use_cases":["Use it to safely call torch.scan in production code without worrying about device-specific or version-specific backward failures.","Use it to backport scan functionality to PyTorch 2.7 environments where native scan backward is not available.","Use it to warm scan health checks before compiling functions with torch.compile to avoid tracing overhead.","Use it to diagnose why scan backward is unavailable on a specific device or PyTorch version."],"what_it_does":"hoptorch is a thin compatibility layer for PyTorch's scan operator, which is part of PyTorch's higher-order operator suite. It wraps torch._higher_order_ops.scan with a health check that verifies scan backward is working on your device before you use it, then lazily applies version-specific patches to PyTorch internals if needed. For PyTorch 2.7, where scan backward is not yet implemented, hoptorch provides a small eager scan implementation that uses ordinary autograd instead.\n\nThe package is designed to let you write scan code once and have it work reliably across PyTorch versions and devices. It includes utilities to check whether scan is available, to warm the health check before torch.compile, and to inspect why scan might be unavailable on a given device. The health check fails closed during Dynamo tracing to avoid false positives.","worth_installing":"Yes, if you need scan and want version/device safety. The low install friction, permissive license, and active maintenance make it reasonable. However, it is early-stage (Alpha) with minimal real-world usage; test thoroughly in your environment before relying on it in production."},"id":"hoptorch","links":{"html":"https://skillfed.io/packages/hoptorch","md":"https://skillfed.io/packages/hoptorch.md","pypi":"https://pypi.org/project/hoptorch/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-05","license_spdx":"MIT","license_treatment":"permissive","name":"hoptorch","python_support":"supports_current","summary":"Compatibility helpers for PyTorch higher-order operators."},"popularity":{"monthly_downloads":87914,"position":13761,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.4"}
