SHI-Labs / NATTEN

Neighborhood Attention Extension. Bringing attention to a neighborhood near you!
https://shi-labs.com/natten/
Other
366 stars 30 forks source link

Deprecation warnings not ignore-able? #130

Closed drscotthawley closed 6 months ago

drscotthawley commented 6 months ago

Hi, I'm using someone else's code and don't have the option to rewrite it. The warnings are a bit excessive (below).
I've tried ignoring a few different types e.g. DeprecationWarning, UserWarning, such as

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

even tried just turning off all warnings (i.e. not specifying a category). I've tried putting such ignore directives at the top before any packages are imported, and further down after all packages have been imported.

...but pages and pages of the message are still coming through.

How can we disable these?

| 2024-05-17 17:29:05,444 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,459 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,460 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,460 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,477 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,483 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,487 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,487 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,487 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,487 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,488 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,488 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,488 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,488 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,489 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,489 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,489 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,489 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,489 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,490 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,490 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,490 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,490 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,490 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,491 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,491 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,491 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,491 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,491 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,491 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,492 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,492 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,492 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,492 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,492 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,493 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,493 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,493 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,497 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,497 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,497 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,497 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,498 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,717 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,719 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,720 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,723 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,723 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,725 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,725 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,727 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,727 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,730 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,731 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,733 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,734 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,736 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,736 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,739 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,739 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,745 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,746 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,746 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,747 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,749 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,750 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,752 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,753 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,753 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,754 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,756 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,757 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,759 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,759 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,760 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,761 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,763 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,764 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,766 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,767 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,767 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,768 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,770 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,770 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,773 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,773 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,774 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,774 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,777 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,778 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,782 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,783 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,784 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,785 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,788 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,788 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,789 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,790 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,791 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,792 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,795 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,795 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,796 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,797 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,798 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,799 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,802 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,802 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,803 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,804 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,806 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,806 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,809 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,809 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,811 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,811 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,813 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,813 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,817 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,817 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,819 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,820 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,822 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,822 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,825 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,825 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,831 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,831 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,832 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,833 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,835 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,836 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,838 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,839 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,839 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,840 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dav`, which is deprecated in favor of `natten.functional.na1d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,842 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dqkrpb`, which is deprecated in favor of `natten.functional.na2d_qk`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,842 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten2dav`, which is deprecated in favor of `natten.functional.na2d_av`. Please consider switching, as this op will be removed soon.
| 2024-05-17 17:29:05,845 | [[ natten.functional ]] [ WARNING ]: You're calling NATTEN op `natten.functional.natten1dqkrpb`, which is deprecated in favor of `natten.functional.na1d_qk`. Please consider switching, as this op will be removed soon.
alihassanijr commented 6 months ago

This is because NATTEN uses logging not warnings for everything.

Setting the environment variable should get rid of them:

export NATTEN_LOG_LEVEL="critical"
alihassanijr commented 6 months ago

...but pages and pages of the message are still coming through.

This concerns me. It shouldn't happen unless someone is recursively or iteratively importing from natten.functional which is not good.

drscotthawley commented 6 months ago

Ah ok thanks! Done.

Re. imports, code in question seems to be one line of import in one file, here: https://github.com/mir-aidj/all-in-one/blob/18e78903c0365147a2c5d4e5e57ebf88cb7d800e/src/allin1/models/dinat.py#L10:

from natten.functional import natten1dav, natten1dqkrpb, natten2dav, natten2dqkrpb

I don't see any recursive importing going on. Not seeing any other imports of natten, in fact a few places where it appears at all.

https://github.com/search?q=repo%3Amir-aidj%2Fall-in-one%20natten&type=code

Just running that import line doesn't produce any messages at all, in my environment.

But the nattendav routine gets called over & over via the forward method of the main model. That seems to be when those messages are generated.

I'm ok to close this Issue if you like, however perhaps keeping it open until the multiple-messages issue is resolved would be to your preference.

alihassanijr commented 6 months ago

Actually no you're right; the warning is issued per call. I don't think I'll change its behavior though given that we'll probably remove those in the next major release.

So as long as your issue is resolved we can close this.

drscotthawley commented 6 months ago

Ok, sounds good. I'm going to fork that code and try to update it to use the newer version of NATTEN.