Flowchain - Method Chaining for TensorFlow
Extensive and simple tensor method chaining for TensorFlow
This package requires Python >= 3.7 and uses some Python magics for extensive injection. Therefore, there could be some unexpected behaviour among method chaining. If you have experienced such behaviours, please feel free to open new issue in this repo!
Currently, I am still finding a way to support code completion for IDEs like PyCharm, Visual Studio Code, etc.
Install via:
pip install flowchain
Add only 2 lines of code at the top of your code!
from flowchain import enable_tensor_chaining
enable_tensor_chaining() # this does everything for you.
This package makes following approach possible:
# before
x = tf.abs(lhs - rhs)
x = tf.reduce_sum(x, 1)
x = tf.argmin(x, output_type=tf.int32)
# after
x = (lhs - rhs).abs().reduce_sum(1).argmin(output_type=tf.int32)
Metadata
Release files for flowchain 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flowchain-0.0.8.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flowchain-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / flowchain-0.0.8.tar.gz
| Download URL | flowchain-0.0.8.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9db29d444f6bf91a019fbcde48d5bacd3ee7e4ff8b96e03dd7e85658288815eb
|
|
BLAKE2b-256 checksum How to use checksums |
f29d611da8bf5d3303b8b9f5354d106245a6e10fffa4176a3026a13cfc0eebb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / flowchain-0.0.8-py3-none-any.whl
| Download URL | flowchain-0.0.8-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a170a64212a407dcc993f3737b8f881f3be900a630ef0fa47e5152f83bc0768
|
|
BLAKE2b-256 checksum How to use checksums |
31873411ab758fb3cb1f587d29b98c5b4e6894c554a1e6ec1ce64d465151d672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|