MXOP: MXNet-OpSummary
It only works for gluon yet.
Reference: THOP: PyTorch-OpCounter
Usage
Gluon
- Count OPs
from mxop.gluon import count_ops op_counter = count_ops(net) # net is the gluon model you want to count OPs
- Count parameters
from mxop.gluon import count_params op_counter = count_params(net, input_size) # net is the gluon model you want to count OPs # input_size is the shape of your input
- Print summary
from mxop.gluon import op_summary op_counter = op_summary(net, input_size) # net is the gluon model you want to count OPs # input_size is the shape of your input
TODO
- Count OPs and parameters for each layer.
- Support Symbol model for MXNet.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mxop-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mxop-0.1.0-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file mxop-0.1.0.tar.gz.
File metadata
- Download URL: mxop-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74492cc3fd08067161d17fb2fa7068e0275fd11cfc72ddba511cdf8e00986949
|
|
| MD5 |
37a4f064e498d1f649f4e01fd8cfb10a
|
|
| BLAKE2b-256 |
7538458815379bdf12f08c034678e51f1978f41d7a46aa5e2d08ee9850405a1d
|
File details
Details for the file mxop-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mxop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e44c03fc15913d49fb02de9f3f26253adc3584a79146c762a64c7c2ac16a00cd
|
|
| MD5 |
0efe7f94a01b9a2823b4d1b74248bb23
|
|
| BLAKE2b-256 |
486725748032d2b14ad8c0fa037baa0ea422b5ef61167d5a6af7a1d915ca74bc
|