from pathlib import Path
from typing import Dict, Any
from labml.internal.lab import lab_singleton as _internal
[docs]
def get_computer_name():
r"""
Returns computer name
"""
from labml.internal.computer.configs import computer_singleton
return computer_singleton().name
[docs]
def get_computer_uuid():
r"""
Returns computer name
"""
from labml.internal.computer.configs import computer_singleton
return computer_singleton().uuid
[docs]
def get_info() -> Dict[str, Any]:
r"""
Returns information about lab
"""
return _internal().get_info()
[docs]
def get_path() -> Path:
r"""
Get the path to the root of the project
"""
return _internal().path
# TODO remove
[docs]
def get_data_path() -> Path:
r"""
Get the path to the data folder
"""
return _internal().data_path
[docs]
def get_experiments_path() -> Path:
r"""
Get the path to the root of experiment logs
"""
return _internal().experiments