Overview
nexport is a lightweight Python 3.10+ package which enables neural network developers to export the weights and biases of trained networks to useful file types.
Table of contents
Current support
| Filetype | PyTorch | Keras/TensorFlow | ||
|---|---|---|---|---|
| Export | Import | Export | Import | |
| Text (.txt) | ✅ | ✅ | 🚧 | ❌ |
| JSON (.json) | ✅ | 🚧 | ❌ | ❌ |
| CSV (.csv) | ❌ | ❌ | ❌ | ❌ |
| XML (.xml) | ❌ | ❌ | ❌ | ❌ |
Install & use
- From terminal:
pip install nexport - From python environment:
import nexport
Objectives
- Export weights and biases to human-readable file
- Ensure compatability with all popular neural network development software
History
This package is intended to be used in conjunction with inference-engine. As such, nexport was developed by the inference-engine developers to enable compatability between the two softwares. nexport does this by exporting the weights and biases from networks compiled in PyTorch, Keras, and TensorFlow into standardized human-readable files. These files can be read by inference-engine to instantiate the netwoks in Fortran 2018 for inference.
Credits
nexport was created and is currently maintained by Jordan Welsman. Parts of this project were based on prior work by Tan Nguyen.
License
nexport is developed and distributed under a Berkeley Laboratory modified BSD license.
Note See
LICENSEfor more details.
Links
Metadata
Release files for nexport 0.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nexport-0.4.6.tar.gz | 14.9 kB | Without provenance | Details for nexport-0.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nexport-0.4.6-py3-none-any.whl | Python 3 | none | any | Details for nexport-0.4.6-py3-none-any.whl |
Total release size: 36.9 kB
Release files / nexport-0.4.6.tar.gz
| Download URL | nexport-0.4.6.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10b93f56c86d445daac78402fcfa4b512a7e6c6a9f0d6897ef6522149ce85620
|
|
BLAKE2b-256 checksum How to use checksums |
20fd1e0099e50b53bb6083a5192c678da58731837906b566502d078115c3d2fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / nexport-0.4.6-py3-none-any.whl
| Download URL | nexport-0.4.6-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7643350ba0f1912d4764174caf81ca521bace425726cf71a598fb0372248e771
|
|
BLAKE2b-256 checksum How to use checksums |
b9ed27fbb2fe9c81dcedef36c5058f1f3212023164cdb207bd461d595851aa45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for nexport 0.4.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.