Skip to main content

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

usage in colab : Open In Colab

from tpu_tf2.tpu import strategy
strategy.num_replicas_in_sync

> output : 8

💁 Thanks for reading and forking.

Project details


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)

Uploaded Source

Built Distribution

tpu_tf2-1.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for tpu_tf2-1.1.0.tar.gz
Algorithm Hash digest
SHA256 45668b5f0a25f1771545751602279b8d0d247679c53d88de791edb678b32d21a
MD5 7718f1f0343cd2d2877476921312cccc
BLAKE2b-256 dd04d2e568eff09dfb2fb957da0d0a6133c058b9e03259baf88ff0f422b10c70

See more details on using hashes here.

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

Hashes for tpu_tf2-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c5f0cbd385b446d21856ae7b1b45bc7744cc9dc4ec61e2b24721c15e4329af
MD5 116b1bbe53bf0611affffdc947b8b543
BLAKE2b-256 2a33933e4eee66156f10bc50142266d62ed1b75bbf6e7479f068922797b9e291

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page