a collection of assorted algorithms expressed in Tensors. Dev package that pushes on green from master.
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
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
Built Distribution
File details
Details for the file tensorbank-dev-0.2.202007080435.tar.gz
.
File metadata
- Download URL: tensorbank-dev-0.2.202007080435.tar.gz
- Upload date:
- Size: 8.3 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 | 0c25606dc739e40c91c6e26d42d2c9fddbb487dd95939a9558a1d6b58319b218 |
|
MD5 | 0e15a7fb854c145cb3b6599fcd731c54 |
|
BLAKE2b-256 | 89b53e2e3a5c0395c86f8aebb0ea621dab1827d4b859378e8948f42364c69906 |
File details
Details for the file tensorbank_dev-0.2.202007080435-py3-none-any.whl
.
File metadata
- Download URL: tensorbank_dev-0.2.202007080435-py3-none-any.whl
- Upload date:
- Size: 8.8 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 | abfe697b0fedec92bd410f65e2196c2933bbe43e89bec3d703fd2ece133dbe0c |
|
MD5 | 55e7dc4f273eca936f66d179a03458e9 |
|
BLAKE2b-256 | 73594659d36fd3bb3841d49f4d11d34aa6d61adc918f621da23eebaedd2b1ed2 |