torch-model-loader

Model Loader for PyTorch, Input Name & Output Model


Keywords
PyTorch Model Loader
License
MIT
Install
pip install torch-model-loader==0.1.0

Documentation

torch-model-loader Build Status codecov PyPI version

Model Loader for PyTorch, Name ➡️ Model

Installation

Need Python 3.6+.

pip install torch-model-loader

Usage

import torch.nn as nn
import torch_model_loader


@torch_model_loader.register
class CustomModule(nn.Module):
    pass

# ...

model_class = torch_model_loader.load('CustomModule')
model = model_class()