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.
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.1.1.tar.gz
.
File metadata
- Download URL: tensorbank-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/4.15.0-108-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cff7d9b41736535885f0ef9532351720c4a314e0fb6651d1c50812bbc93a9a7b |
|
MD5 | 028136d57c4581fec213960f00be13d6 |
|
BLAKE2b-256 | a30ddfb2d5a88fe8895ba7cd94ac650555ddfe2b37a660c7d77d413545fa5647 |
File details
Details for the file tensorbank-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: tensorbank-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/4.15.0-108-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ac3d138a2e959a19a699c9628d2ea37183242cf11fd86eaa2b543f826dc90d5 |
|
MD5 | 2600b148e45372357601ccfc9105c4ab |
|
BLAKE2b-256 | bef000a29ca280c84c007dca1a5ca781362a41d9db326dca6a6cf3919417ecaf |