Skip to main content

Small utils for Tensorflow in Python.

Project description

Tensorutils

Small utils for Tensorflow in Python.

Select CPU if not GPU

A function to force Tensorflow to use CPU instead of GPU if this is not present. This function is very easy to use. For example:

from tensorutils import select_cpu_if_not_gpu

# With static memory size
select_cpu_if_not_gpu()

# With dynamic memory size
select_cpu_if_not_gpu(True)

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

tensorutils-0.0.3.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file tensorutils-0.0.3.tar.gz.

File metadata

  • Download URL: tensorutils-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3

File hashes

Hashes for tensorutils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 99ca54e566e1061b9ecf514022efc87ca78dde4aded4d749fe15ec44c3a74beb
MD5 ac6f4b1044f1ec326da0b69848c93f74
BLAKE2b-256 01fce346042aef53f6f096065aa30cba604638ab8d2dd12a86f8a21a99c3fb5b

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