File: gpu_info.py

package info (click to toggle)
pytorch-ignite 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,712 kB
  • sloc: python: 46,874; sh: 376; makefile: 27
file content (22 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
""" ``ignite.contrib.metrics.gpu_info`` was moved to ``ignite.metrics.gpu_info``.
Note:
    ``ignite.contrib.metrics.gpu_info`` was moved to ``ignite.metrics.gpu_info``.
    Please refer to :mod:`~ignite.metrics.gpu_info`.
"""

import warnings

removed_in = "0.6.0"
deprecation_warning = (
    f"{__file__} has been moved to ignite/metrics/gpu_info.py"
    + (f" and will be removed in version {removed_in}" if removed_in else "")
    + ".\n Please refer to the documentation for more details."
)
warnings.warn(deprecation_warning, DeprecationWarning, stacklevel=2)
from ignite.metrics.gpu_info import GpuInfo

__all__ = [
    "GpuInfo",
]

GpuInfo = GpuInfo