TPU use in single line in colab.
Project description
TPU usage in colab with single line of code
Before installation Make sure your TPU is on
Installation
To install the package from the PyPi repository you can execute the following command:
pip install tpu_tf2
If you prefer, you can clone it and run the setup.py file. Use the following commands to get a copy from GitHub and install all dependencies:
git clone https://github.com/ashishpatel26/regressionmetrics.git
cd tpu_tf2
pip install .
Usage
from tpu_tf2.tpu import strategy
strategy.num_replicas_in_sync
> output : 8
💁 Thanks for reading and forking.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tpu_tf2-1.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file tpu_tf2-1.1.0.tar.gz
.
File metadata
- Download URL: tpu_tf2-1.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45668b5f0a25f1771545751602279b8d0d247679c53d88de791edb678b32d21a |
|
MD5 | 7718f1f0343cd2d2877476921312cccc |
|
BLAKE2b-256 | dd04d2e568eff09dfb2fb957da0d0a6133c058b9e03259baf88ff0f422b10c70 |
File details
Details for the file tpu_tf2-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: tpu_tf2-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2c5f0cbd385b446d21856ae7b1b45bc7744cc9dc4ec61e2b24721c15e4329af |
|
MD5 | 116b1bbe53bf0611affffdc947b8b543 |
|
BLAKE2b-256 | 2a33933e4eee66156f10bc50142266d62ed1b75bbf6e7479f068922797b9e291 |