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

GitHub Repo stars GitHub watchers GitHub forks 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.6.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

nexport-0.4.6-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nexport-0.4.6.tar.gz
  • Upload date:
  • Size: 14.9 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.6.tar.gz
Algorithm Hash digest
SHA256 10b93f56c86d445daac78402fcfa4b512a7e6c6a9f0d6897ef6522149ce85620
MD5 df6b1db4db8ccc6b6ae74db5f210b004
BLAKE2b-256 20fd1e0099e50b53bb6083a5192c678da58731837906b566502d078115c3d2fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexport-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 22.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7643350ba0f1912d4764174caf81ca521bace425726cf71a598fb0372248e771
MD5 ce590a15562ed1774f2f95c7d3a9c5e9
BLAKE2b-256 b9ed27fbb2fe9c81dcedef36c5058f1f3212023164cdb207bd461d595851aa45

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