tensorflowjs


Nametensorflowjs JSON
Version 4.22.0 PyPI version JSON
download
home_pagehttps://js.tensorflow.org/
SummaryNone
upload_time2024-10-21 21:35:41
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.22.0",
    "project_urls": {
        "Homepage": "https://js.tensorflow.org/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a240c363bdb7ef69b27c941c622b1f6e12eba5e3563abde737690fd1a13969ba",
                "md5": "5f14ee47743a0e4f218a1b816747c15c",
                "sha256": "bd4deb1e7feab538ee7f2625fe85446742bb4765bebab345b534688ab41e3e1c"
            },
            "downloads": -1,
            "filename": "tensorflowjs-4.22.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5f14ee47743a0e4f218a1b816747c15c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 89131,
            "upload_time": "2024-10-21T21:35:41",
            "upload_time_iso_8601": "2024-10-21T21:35:41.663958Z",
            "url": "https://files.pythonhosted.org/packages/a2/40/c363bdb7ef69b27c941c622b1f6e12eba5e3563abde737690fd1a13969ba/tensorflowjs-4.22.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-21 21:35:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tensorflowjs"
}
        
Elapsed time: 0.38950s