flowchain


Nameflowchain JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/OrigamiDream/flowchain
SummaryFlowchain - Method Chaining for TensorFlow
upload_time2023-05-27 12:18:31
maintainer
docs_urlNone
authorOrigamiDream
requires_python>=3.7.0
licenseMIT
keywords machine learning deep learning tensorflow method chaining extension
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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!
```python
from flowchain import enable_tensor_chaining

enable_tensor_chaining()  # this does everything for you.
```

This package makes following approach possible:
```python
# 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)
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OrigamiDream/flowchain",
    "name": "flowchain",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.0",
    "maintainer_email": "",
    "keywords": "machine learning,deep learning,tensorflow,method chaining,extension",
    "author": "OrigamiDream",
    "author_email": "hello@origamidream.me",
    "download_url": "https://files.pythonhosted.org/packages/f2/9d/611da8bf5d3303b8b9f5354d106245a6e10fffa4176a3026a13cfc0eebb6/flowchain-0.0.8.tar.gz",
    "platform": null,
    "description": "# Flowchain - Method Chaining for TensorFlow\n\nExtensive and simple tensor method chaining for TensorFlow\n\nThis 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!\n\nCurrently, I am still finding a way to support code completion for IDEs like PyCharm, Visual Studio Code, etc.\n\nInstall via:\n```\npip install flowchain\n```\n\nAdd only 2 lines of code at the top of your code!\n```python\nfrom flowchain import enable_tensor_chaining\n\nenable_tensor_chaining()  # this does everything for you.\n```\n\nThis package makes following approach possible:\n```python\n# before\nx = tf.abs(lhs - rhs)\nx = tf.reduce_sum(x, 1)\nx = tf.argmin(x, output_type=tf.int32)\n\n# after\nx = (lhs - rhs).abs().reduce_sum(1).argmin(output_type=tf.int32)\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Flowchain - Method Chaining for TensorFlow",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/OrigamiDream/flowchain"
    },
    "split_keywords": [
        "machine learning",
        "deep learning",
        "tensorflow",
        "method chaining",
        "extension"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "31873411ab758fb3cb1f587d29b98c5b4e6894c554a1e6ec1ce64d465151d672",
                "md5": "2ca1d9900e6be5b1eaff49102d430757",
                "sha256": "6a170a64212a407dcc993f3737b8f881f3be900a630ef0fa47e5152f83bc0768"
            },
            "downloads": -1,
            "filename": "flowchain-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2ca1d9900e6be5b1eaff49102d430757",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.0",
            "size": 4685,
            "upload_time": "2023-05-27T12:18:29",
            "upload_time_iso_8601": "2023-05-27T12:18:29.758486Z",
            "url": "https://files.pythonhosted.org/packages/31/87/3411ab758fb3cb1f587d29b98c5b4e6894c554a1e6ec1ce64d465151d672/flowchain-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f29d611da8bf5d3303b8b9f5354d106245a6e10fffa4176a3026a13cfc0eebb6",
                "md5": "4c9a61672b5b2fe33fa978306b64ba87",
                "sha256": "9db29d444f6bf91a019fbcde48d5bacd3ee7e4ff8b96e03dd7e85658288815eb"
            },
            "downloads": -1,
            "filename": "flowchain-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "4c9a61672b5b2fe33fa978306b64ba87",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0",
            "size": 3961,
            "upload_time": "2023-05-27T12:18:31",
            "upload_time_iso_8601": "2023-05-27T12:18:31.377987Z",
            "url": "https://files.pythonhosted.org/packages/f2/9d/611da8bf5d3303b8b9f5354d106245a6e10fffa4176a3026a13cfc0eebb6/flowchain-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-27 12:18:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OrigamiDream",
    "github_project": "flowchain",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "flowchain"
}
        
Elapsed time: 0.07867s