We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17e71b commit 4cd737aCopy full SHA for 4cd737a
megatron/core/utils.py
@@ -2,6 +2,8 @@
2
3
"""Utility functions used throughout Megatron core"""
4
5
+from .backwards_compatibility_decorators import exempt_from_compat_check
6
+
7
import array
8
import asyncio
9
import functools
@@ -280,6 +282,7 @@ def __getattribute__(self, attr):
280
282
return validator
281
283
284
285
+@exempt_from_compat_check # TEST: Decorator functionality
286
def get_torch_version():
287
"""Get pytorch version from __version__; if not available use pip's. Use caching."""
288
0 commit comments