A Python package for exporting the weights and biases of neural networks.
Project description
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
LICENSE
for more details.
Links
:file_folder: See this project on GitHub
:gift: See this project on PyPI
:cat: Follow me on GitHub
:briefcase: Connect with me on Linkedin
:email: Send me an email
:thought_balloon: Based on this project
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nexport-0.4.4.tar.gz
.
File metadata
- Download URL: nexport-0.4.4.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d53805b5060fb1fcbcc28b52b1af70e8f03ba6e124458fce7db9fbba37c027 |
|
MD5 | f7ff2bb012a26502fba67b0ac5adce59 |
|
BLAKE2b-256 | 607debac3adc3d1579904e59eb6fb270730333bc442f0c532efa833cecea8925 |
File details
Details for the file nexport-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: nexport-0.4.4-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9176336c1c704aa27cec1b27550cb5b1bbd436a1896b9d4ef083962150ccdacb |
|
MD5 | f092ce5d0242da5cbd7206a9d0c00d49 |
|
BLAKE2b-256 | 4d53284634a0412d23304660af6b0f3cf3b2a49a4f1ee2b6d9dfc725cd4832a4 |