torch-memory-saver 0.0.2__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torch_memory_saver
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Requires-Python: >=3.9
5
5
  License-File: LICENSE
@@ -7,7 +7,7 @@ logger = logging.getLogger(__name__)
7
7
 
8
8
  setup(
9
9
  name='torch_memory_saver',
10
- version='0.0.2',
10
+ version='0.0.3',
11
11
  ext_modules=[setuptools.Extension(
12
12
  'torch_memory_saver_cpp',
13
13
  ['csrc/torch_memory_saver.cpp'],
@@ -37,6 +37,10 @@ class TorchMemorySaver:
37
37
  if _global_info.binary_info.enabled:
38
38
  _global_info.binary_info.cdll.tms_resume()
39
39
 
40
+ @property
41
+ def enabled(self):
42
+ return _global_info.binary_info.enabled
43
+
40
44
 
41
45
  @dataclass
42
46
  class _BinaryInfo:
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torch_memory_saver
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Requires-Python: >=3.9
5
5
  License-File: LICENSE