a collection of assorted algorithms expressed in Tensors.
Project description
TensorBank
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
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
Built Distribution
File details
Details for the file tensorbank-0.2.1.tar.gz
.
File metadata
- Download URL: tensorbank-0.2.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 704e95db6c5ad138d198840c1859edb4886ff2f4038c3b5d5be2e44252ae0ebe |
|
MD5 | e008281f32a88193628a9dfae32b9fdb |
|
BLAKE2b-256 | 23c852f9b461534ef472a0ae48d72c69ecd6a703772fbce8ea84495c1a46e9f5 |
File details
Details for the file tensorbank-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: tensorbank-0.2.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607cc644557e3d53bbe8404aec9b7eb9f201b7484f8be7ddeaf00161a8ab4414 |
|
MD5 | b8922393c33b09aa7ad0afd01061db7b |
|
BLAKE2b-256 | 1788ebc44719ac6ac2cd52995e214793d6a2106a422f01cc385765faa78e9333 |