Skip to main content

A Python package for exporting the weights and biases of neural networks.

Project description


GitHub tag (latest by date) GitHub release (latest by date) GitHub Release Date GitHub license GitHub commit activity

PyPI PyPI - Python Version PyPI - Wheel PyPI - Status PyPI - Downloads

Lines of code GitHub repo file count GitHub repo size

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

  1. From terminal: pip install nexport
  2. 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

nexport-0.4.5.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

nexport-0.4.5-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file nexport-0.4.5.tar.gz.

File metadata

  • Download URL: nexport-0.4.5.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nexport-0.4.5.tar.gz
Algorithm Hash digest
SHA256 0e32aad3d1a9cbbce5c2598e5bef73219db95f07d745a85cd0b9918227b70f0e
MD5 45ee7a04241667e6999259c27c4b8403
BLAKE2b-256 8503805ab5748b7e96a5e264e0668195ccc75620f86e8de4fda45513b45072bd

See more details on using hashes here.

File details

Details for the file nexport-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: nexport-0.4.5-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

Hashes for nexport-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 788f13d079fa29a708ae9d77d2b68127987b7ae80892fca92e8d60f187809886
MD5 39ee4161b7c5ab1c35ada3002acf6d31
BLAKE2b-256 47de8bafc95f77c9d35f9d3cee5b43a76452c6ec512a0ffff8583eecb8bf390d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page