https://github.com/oelin/semantic-shapes
Semantic shapes for deep neural networks.
https://github.com/oelin/semantic-shapes
Last synced: 3 months ago
JSON representation
Semantic shapes for deep neural networks.
- Host: GitHub
- URL: https://github.com/oelin/semantic-shapes
- Owner: oelin
- License: mit
- Created: 2024-03-21T10:44:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-09T17:21:03.000Z (about 1 year ago)
- Last Synced: 2024-04-09T20:34:20.343Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# semantic-shapes
Semantic shapes for deep neural networks.
Installation
------------```sh
pip install git+https://github.com/oelin/semantic-shapes
```Usage
-----```python
import semantic_shapes as ssimage_shape = ss.ImageShape(channels=3, height=256, width=256)
volume_shape = ss.VolumeShape(channels=3, depth=256, height=256, width=256)
video_shape = ss.VideoShape(duration=1024, channels=3, height=256, width=256)
audio_shape = ss.AudioShape(duration=1024, channels=32)
text_shape = ss.TextShape(length=1024)
sequence_shape = ss.SequenceShape(channels=256, length=1024)
vector_shape = ss.VectorShape(dimension=256)
matrix_shape = ss.MatrixShape(height=256, width=256)
```