tensorflowjs


Nametensorflowjs JSON
Version 4.18.0 PyPI version JSON
download
home_pagehttps://js.tensorflow.org/
SummaryNone
upload_time2024-04-18 17:39:18
maintainerNone
docs_urlNone
authorGoogle LLC
requires_pythonNone
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # tensorflowjs: The Python Package for TensorFlow.js

The **tensorflowjs** pip package contains libraries and tools for
[TensorFlow.js](https://js.tensorflow.org).

Use following command to install the library with support of interactive CLI:
```bash
pip install tensorflowjs[wizard]
```

Then, run the following to see a list of CLI options

```bash
tensorflowjs_converter --help
```

or, use the wizard

```bash
tensorflowjs_wizard
```

Alternatively, run the converter via its Bazel target. This must be run from withing the tfjs repo:

```bash
yarn bazel run //tfjs-converter/python/tensorflowjs/converters:converter -- --help
```

## Development

The python tests are run with Bazel.

```bash
yarn bazel test //tfjs-converter/python/...
```

Alternatively, run `yarn run-python-tests` to run the above command.

To debug a specific test case, use the `--test_filter` option. For example,

```bash
yarn bazel test //tfjs-converter/python/tensorflowjs/converters:tf_saved_model_conversion_v2_test --test_filter=ConvertTest.test_convert_saved_model_v1
```

Interactive debugging with breakpoints is supported by `debugpy` in VSCode.
To enable debugging, put this code at the top of the test file you want to
debug.

```python
import debugpy
debugpy.listen(('localhost', 5724))
print("Waiting for debugger to connect. See tfjs-converter python README")
debugpy.wait_for_client()
```

You may also need to add the following dependency to the test target in the
Bazel `BUILD` file if it's not already present.
```starlark
"//tfjs-converter/python/tensorflowjs:expect_debugpy_installed"
```

Then, run the test with `bazel run --config=debugpy` and connect
the VSCode debugger by selecting the `Python: Attach (Converter)` option.


            

Raw data

            {
    "_id": null,
    "home_page": "https://js.tensorflow.org/",
    "name": "tensorflowjs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Google LLC",
    "author_email": "opensource@google.com",
    "download_url": null,
    "platform": null,
    "description": "# tensorflowjs: The Python Package for TensorFlow.js\n\nThe **tensorflowjs** pip package contains libraries and tools for\n[TensorFlow.js](https://js.tensorflow.org).\n\nUse following command to install the library with support of interactive CLI:\n```bash\npip install tensorflowjs[wizard]\n```\n\nThen, run the following to see a list of CLI options\n\n```bash\ntensorflowjs_converter --help\n```\n\nor, use the wizard\n\n```bash\ntensorflowjs_wizard\n```\n\nAlternatively, run the converter via its Bazel target. This must be run from withing the tfjs repo:\n\n```bash\nyarn bazel run //tfjs-converter/python/tensorflowjs/converters:converter -- --help\n```\n\n## Development\n\nThe python tests are run with Bazel.\n\n```bash\nyarn bazel test //tfjs-converter/python/...\n```\n\nAlternatively, run `yarn run-python-tests` to run the above command.\n\nTo debug a specific test case, use the `--test_filter` option. For example,\n\n```bash\nyarn bazel test //tfjs-converter/python/tensorflowjs/converters:tf_saved_model_conversion_v2_test --test_filter=ConvertTest.test_convert_saved_model_v1\n```\n\nInteractive debugging with breakpoints is supported by `debugpy` in VSCode.\nTo enable debugging, put this code at the top of the test file you want to\ndebug.\n\n```python\nimport debugpy\ndebugpy.listen(('localhost', 5724))\nprint(\"Waiting for debugger to connect. See tfjs-converter python README\")\ndebugpy.wait_for_client()\n```\n\nYou may also need to add the following dependency to the test target in the\nBazel `BUILD` file if it's not already present.\n```starlark\n\"//tfjs-converter/python/tensorflowjs:expect_debugpy_installed\"\n```\n\nThen, run the test with `bazel run --config=debugpy` and connect\nthe VSCode debugger by selecting the `Python: Attach (Converter)` option.\n\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": null,
    "version": "4.18.0",
    "project_urls": {
        "Homepage": "https://js.tensorflow.org/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19f9801cd2a982ddfa5b491fdd51fee3abe3967c2b8e46d46afd5f389e2e29ec",
                "md5": "6c36be659b98a510d894d71ef1a90c63",
                "sha256": "e1dd62be7bc3210a941b86d4a5382bcbc7edbf56c3c4fb59ef53ea5c2a736983"
            },
            "downloads": -1,
            "filename": "tensorflowjs-4.18.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c36be659b98a510d894d71ef1a90c63",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 89131,
            "upload_time": "2024-04-18T17:39:18",
            "upload_time_iso_8601": "2024-04-18T17:39:18.045681Z",
            "url": "https://files.pythonhosted.org/packages/19/f9/801cd2a982ddfa5b491fdd51fee3abe3967c2b8e46d46afd5f389e2e29ec/tensorflowjs-4.18.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-18 17:39:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tensorflowjs"
}
        
Elapsed time: 0.27289s