Threepio Python Client
Threepio is a multi-language library for translating commands between PyTorch, TensorFlow, and TensorFlow.js This section of the code-base is for the Python Client.
Installation
Use the package manager pip to install threepio.
pip install openmined.threepio
Usage
import tensorflow as tf
from pythreepio import Threepio, Command
# Create a threepio translating from pytorch -> tensorflow python
threepio = Threepio("torch", "tf", tf)
# Create your command to translate
args = [
tf.constant([[1, 0], [0, 1]]),
tf.constant([[0, 1], [1, 0]])
]
kwargs = {}
cmd = Command("add", args, kwargs)
# Translate the command
translated_cmd = threepio.translate(cmd, lookup_command=True)
...
# When you're ready, execute the translation
translated_cmd.execute_routine() # -> [[1, 1], [1, 1]]
Command Support
Support for commands is currently limited. Officially supported commands are listed in our tests.
Metadata
Release files for openmined.threepio 0.2.0
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 |
|---|---|---|---|---|
| openmined.threepio-0.2.0.tar.gz | 73.5 kB | Without provenance | Details for openmined.threepio-0.2.0.tar.gz |
Release files / openmined.threepio-0.2.0.tar.gz
| Download URL | openmined.threepio-0.2.0.tar.gz |
|---|---|
| Size | 73.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3071627665b1b22ca3faa3f036e498d037c1879b61f8055a798cad4e23d4ee6d
|
|
BLAKE2b-256 checksum How to use checksums |
0a38df6367693c7f3808f076cd8c2647c434a04adda2bbb2435dadefe7258fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for openmined.threepio 0.2.0
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.