Skip to main content

a collection of assorted algorithms expressed in Tensors.

Project description

TensorBank

PyPI version Build Status Documentation Status

TensorBank is a collection of assorted algorithms expressed in Tensors.

We do not intend to limit ourselves to a specific domain. The initial batch of algorithms is focused on point and box gemoetry for some object detection tasks, but more algorithms will be added later.

We are open to all backends, including Tensorflow, Pytorch, and NumPy.

Primarily, this project is to avoid copy-pasting the "utils" directory from one project to the next :-)

Installation

$ pip install tensorbank

Usage

If you're using TensorFlow, import TensorBank as follows and use the tb. prefix:

import tensorbank.tf as tb

tb.axis_aligned_boxes.area(
    [[1, 1, 2, 2],
     [-1, -1, 1, 2]])
>>> tf.Tensor([1 6], shape=(2,), dtype=int32)

See API Reference on Readthedocs for the full list of the algorithms offered and comprehensive usage examples.

Development version

PyPI version

If you want to install the push-on-green development version, do this instead:

$ pip install tensorbank-dev

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

tensorbank-0.2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

tensorbank-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file tensorbank-0.2.0.tar.gz.

File metadata

  • Download URL: tensorbank-0.2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.6.7 Linux/4.15.0-1028-gcp

File hashes

Hashes for tensorbank-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a923c414e3e0549ee31c2f51d680dc8e556a7357e3dcb05d37ebe6ea6e828750
MD5 a849711c5c5d14c7929f6f268c998ade
BLAKE2b-256 6072ee77b11221ff901c8eddf3683500757ea5c6bb818761ca351d31f9df1f25

See more details on using hashes here.

File details

Details for the file tensorbank-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tensorbank-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.6.7 Linux/4.15.0-1028-gcp

File hashes

Hashes for tensorbank-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a2ef07057fb82344866000cc8872a09c195b2d09696c1b5da13638c6b8497c
MD5 c3fc3fa3d3ade3eedaac94eeeba564d3
BLAKE2b-256 68cd54bcaee396063d465ee708be89bedc6696f8258c65b8259a75665470684e

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