DNN-printer-0.0.2
توضیحات
Print feature map and weight size of PyTorch models.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | DNN-printer-0.0.2 |
| نام | DNN-printer |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | CPing |
| ایمیل نویسنده | 635897373@qq.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/DNN-printer/ |
| مجوز | - |
:DNN Printer
This is a simple package to print the size of feature map and DNN weight.
:Usage
You can use this tool by three steps:
0. Install printer by running `pip3 install printer -U --user`
1. Find the file which defines the structure of a Network. Add the following code:
from DNN\_printer import DNN\_printer
def train(epoch):
print('\nEpoch: %d' % epoch)
net.train()
train_loss = 0
correct = 0
total = 0
DNN_printer(net, (3, 32, 32),batch_size)
...
...
**Notice:** The first parameter is the net, the second paramater is the size of input data and the third parameter is the batch size.
:result

:Requirements
Make sure `torch` has been installed.
:Authors
CPing & Peiyi Hong
نحوه نصب
نصب پکیج whl DNN-printer-0.0.2:
pip install DNN-printer-0.0.2.whl
نصب پکیج tar.gz DNN-printer-0.0.2:
pip install DNN-printer-0.0.2.tar.gz