MCPcopy Create free account

hub / github.com/LiyuanLucasLiu/Torch-Scope / functions

Functions36 in github.com/LiyuanLucasLiu/Torch-Scope

↓ 13 callersMethodformat
(self, record)
torch_scope/wrapper.py:55
↓ 2 callersMethodadd_metric
Add metric value for the current expriments to the spreadsheet. Parameters ---------- metric_name: ``str``, required
torch_scope/sheet_writer.py:100
↓ 2 callersMethodget_bytes
Convert other memory size to bytes Parameters ---------- size: ``str``, required. The numeric part of th
torch_scope/wrapper.py:493
↓ 2 callersMethodrestore_checkpoint
Restore checkpoint. Parameters ---------- folder_path: ``str``, required. Path to the checkpoint file
torch_scope/wrapper.py:147
↓ 2 callersMethodsave_config
save the config file.
torch_scope/sheet_writer.py:82
↓ 1 callersMethod__init__
(self, path: str, name: str = None, seed: int = None,
torch_scope/wrapper.py:328
↓ 1 callersMethodadd_subparser
(self, name, parser)
torch_scope/commands.py:16
↓ 1 callersFunctioncached_url
Cached a file to the cache folder. Parameters ---------- url: ``str``, required. The url or the path.
torch_scope/file_manager.py:14
↓ 1 callersFunctionformatter_message
(message, use_color = True)
torch_scope/wrapper.py:40
↓ 1 callersMethodnvidia_memory_map
Get the current GPU memory usage. Based on https://discuss.pytorch.org/t/access-gpu-memory-usage-in-pytorch/3192/4 Parameter
torch_scope/wrapper.py:473
↓ 1 callersFunctionread_readme
()
setup.py:6
↓ 1 callersMethodrestore_configue
Restore the config dict. Parameters ---------- name: ``str``, optional, (default = "config.json"). Name
torch_scope/wrapper.py:420
↓ 1 callersFunctionrun
()
torch_scope/commands.py:33
Method__init__
(self, msg, use_color = True)
torch_scope/wrapper.py:51
Method__init__
(self, spread_sheet_name, path_for_worksheet_name, row_name, credential_path = None)
torch_scope/sheet_writer.py:27
Methodadd_description
Add description for the experiment to the spreadsheet. Parameters ---------- description: ``str``, required.
torch_scope/wrapper.py:616
Methodadd_description
Add descriptions for the current expriments to the spreadsheet. Parameters ---------- description: ``str``, required
torch_scope/sheet_writer.py:89
Methodadd_loss_vs_batch
Add loss to the ``loss_tracking`` section in the tensorboard. Parameters ---------- kv_dict: ``dict``, required.
torch_scope/wrapper.py:633
Methodadd_model_parameter_histograms
Add parameter histogram in the tensorboard. Parameters ---------- model: ``torch.nn.Module``, required.
torch_scope/wrapper.py:721
Methodadd_model_parameter_stats
Add parameter stats to the ``parameter_*`` sections in the tensorboard. Parameters ---------- model: ``torch.nn.Modu
torch_scope/wrapper.py:663
Methodadd_model_update_stats
Add parameter update stats to the ``parameter_gradient_update`` sections in the tensorboard. Parameters ---------- m
torch_scope/wrapper.py:698
Methodauto_device
Automatically choose the gpu (would return the gpu index with minimal used gpu memory by default). Parameters __________
torch_scope/wrapper.py:240
Methodauto_device
Automatically choose the gpu (would return the gpu index with minimal used gpu memory by default). Parameters __________
torch_scope/wrapper.py:506
Functioncheckout_checkpoint
(args)
torch_scope/commands.py:23
Methodclose
Close the tensorboard writer and the logger.
torch_scope/wrapper.py:610
Methodconfirm_an_empty_path
Check whether a folder is an empty folder (not-exist). Parameters __________ path: ``str``, required. Pa
torch_scope/wrapper.py:524
Methodget_bytes
Convert other memory size to bytes Parameters ---------- size: ``str``, required. The numeric part of th
torch_scope/wrapper.py:210
Methodget_writer
Return the tensorboard writer.
torch_scope/wrapper.py:604
Methodnvidia_memory_map
Get the current GPU memory usage. Based on https://discuss.pytorch.org/t/access-gpu-memory-usage-in-pytorch/3192/4 Parameter
torch_scope/wrapper.py:164
Methodrestore_best_checkpoint
Restore the best checkpoint. Parameters ---------- folder_path: ``str``, required. Path to the folder co
torch_scope/wrapper.py:130
Methodrestore_best_checkpoint
Restore the best checkpoint. Parameters ---------- folder_path: ``str``, optional, (default = None). Pat
torch_scope/wrapper.py:454
Methodrestore_configue
Restore the config dict. Parameters ---------- path: ``str``, required. The path toward the folder.
torch_scope/wrapper.py:89
Methodrestore_latest_checkpoint
Restore the latest checkpoint. Parameters ---------- folder_path: ``str``, required. Path to the folder
torch_scope/wrapper.py:106
Methodrestore_latest_checkpoint
Restore the latest checkpoint. Parameters ---------- folder_path: ``str``, optional, (default = None). P
torch_scope/wrapper.py:435
Methodsave_checkpoint
Save checkpoint under the path. Parameters ---------- model: ``torch.nn.Module``, required. The model to
torch_scope/wrapper.py:567
Methodsave_configue
Save config dict to the ``config.json`` under the path. Parameters ---------- config: ``dict``, required.
torch_scope/wrapper.py:549