-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationtype:featureNew feature or requestNew feature or request
Description
Problem
Currently, there are two separate files meant to export the same experimental APIs:
grain/experimental.pygrain/python/experimental.py
However, these files are currently not synchronized, leading to inconsistencies.
This synchronization is critical because downstream libraries (e.g., MaxText) often rely on patterns like import grain.python as grain. If the exports in grain/python/experimental.py lag behind grain/experimental.py, users accessing grain via the python subpackage miss out on new experimental features or face unexpected import errors.
Proposed Solution
Refactor grain/python/experimental.py to simply import everything from the top-level experimental module:
# grain/python/experimental.py
from grain.experimental import *Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationtype:featureNew feature or requestNew feature or request