Skip to main content

NeuralBridge

Easy-to-use, one-liner AI model conversion tool between AI frameworks to ensure faster model development and portability with Open Neural Network Exchange (ONNX).

How to Install

To install NeuralBridge simple use:

pip install neuralbridge

In case you would like to build this project from source please consult the requirements.txt file and the src directory.

How to Use

The main use case of NeuralBridge is to convert model runtime. It converts TensorFlow and PyTorch models from one framework to another absolutely automatically. You can access runtime conversion like this:

from neuralbridge import convert_model

model_in_other_framework = convert_model(model_in_one_framework)

Examples

You can find additional examples in the examples directory.

Converting PyTorch model into TensorFlow

This example is in the example_tf_to_torch.py file.

Converting TensorFlow model into PyTorch

This example is in the example_torch_to_tf.py file.

Old design patterns

You can find the old design patterns in the following files:

  • old_way_onnx_to_tf.py

  • old_way_onnx_to_torch.py

  • old_way_tf_to_onnx.py

  • old_way_tf_to_torch.py

  • old_way_torch_to_onnx.py

  • old_way_torch_to_tf.py

Requirements

The list of all requirements are in the requirements.txt.

License

See details in the LICENSE.

Release files for neuralbridge 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuralbridge 1.0.2
File Size Uploaded
neuralbridge-1.0.2.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuralbridge 1.0.2
File Interpreter ABI Platform
neuralbridge-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / neuralbridge-1.0.2.tar.gz

Download URL neuralbridge-1.0.2.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d8d48c54abd6ff2bff8a8b061e75c22ad6c100191ae9859fa49d68b426ba5eb7
BLAKE2b-256 checksum
How to use checksums
a8067331081151fab42987a75d00b54de7d7b142e3839bd3ddbc1fccbd80de04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / neuralbridge-1.0.2-py3-none-any.whl

Download URL neuralbridge-1.0.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e361eb5b478bac88d560e5e2e4de4d1c4770da50dc61b311cd70b54f2289cead
BLAKE2b-256 checksum
How to use checksums
2dd7e41bef2c5f06954c9e3447edac9a31b712f2d811dc2e6461136c3b241ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page