You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/FlagOpen/FlagGems.git
cd FlagGems
pip install .
cd tests
pytest test_xx_ops.py
error:
tests/test_binary_pointwise_ops.py:3: in <module>
import flag_gems
/usr/local/lib/python3.10/dist-packages/flag_gems/__init__.py:4: in <module>
from .ops import * # noqa: F403
/usr/local/lib/python3.10/dist-packages/flag_gems/ops/__init__.py:21: in <module>
from .dropout import native_dropout
/usr/local/lib/python3.10/dist-packages/flag_gems/ops/dropout.py:24: in <module>
del _seed
E NameError: name '_seed' is not defined
Solution:
I tried to workaround this problem by defining _seed and _offset, hacking FlagGems/src/flag_gems/ops/dropout.py from
Reproduce steps:
Solution:
I tried to workaround this problem by defining _seed and _offset, hacking FlagGems/src/flag_gems/ops/dropout.py from
to
, and it worked properly.
Is there any formal solution for it?
The text was updated successfully, but these errors were encountered: