Skip to content

Add a note that foreach feature is a prototype #3341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions recipes_source/foreach_map.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
(beta) Explicit horizontal fusion with foreach_map and torch.compile
============================================================
Explicit horizontal fusion with foreach_map and torch.compile
===============================================================

**Author:** `Michael Lazos <https://github.com/mlazos>`_
"""
Expand All @@ -13,11 +13,17 @@
# allows conversion of any pointwise op in ``torch`` to a horiztonally fused foreach
# variant. In this tutorial, we will demonstrate how to implement the Adam optimizer
# with ``foreach_map`` to generate a fully fused kernel.
#
#
# .. note::
#
# This tutorial requires PyTorch 2.7.0 or later.
# This recipe describes a prototype feature. Prototype features are typically
# at an early stage for feedback and testing and are subject to change.
#
# Prerequisites
# -------------
#
# * PyTorch v2.7.0 or later
#

#####################################################################
# Model Setup
Expand Down