Skip to main content

A modern educational deep learning framework for students, engineers and researchers

Project description

TensorWeaver

TensorWeaver Logo

A modern educational deep learning framework for students, engineers and researchers

FeaturesInstallationExamplesDocumentationLicenseAcknowledgments

Introduction

TensorWeaver is a deep learning framework designed specifically for students, engineers and researchers who want to understand how deep learning frameworks work under the hood. Unlike industrial frameworks like PyTorch and TensorFlow that prioritize performance and scalability, TensorWeaver focuses on clarity, readability, and simplicity.

Built entirely in Python with only NumPy as a dependency, TensorWeaver's codebase is transparent and approachable, making it an ideal learning resource for those who want to demystify the "magic" behind modern AI frameworks.

The target users are students, engineers and researchers who want to fully understand the working principles of deep learning frameworks and gain the skills to debug, extend and optimize their own projects with any deep learning framework.

Features

  • Purely Educational: Designed from the ground up as a learning tool with clear, well-documented code
  • PyTorch-compatible API: Exactly the same interface as PyTorch, so you can easily switch between TensorWeaver and PyTorch
  • Lightweight and Readable: Built with pure Python and minimal dependencies (merely NumPy)
  • Fully Functional: Supports essential deep learning components:
    • Automatic differentiation engine
    • Common neural network operators
    • Loss functions and optimizers
    • Model definition and training
  • Advanced Capabilities:
    • ONNX export functionality
  • Comprehensive Documentation: Detailed explanations of implementation details and design choices

PyTorch Compatibility

TensorWeaver is designed to be compatible with PyTorch 2.6, allowing for an easier learning transition between frameworks.

PyTorch API Coverage

TensorWeaver targets coverage of 20% of the most commonly used PyTorch APIs, following the 80/20 principle (where 20% of features cover 80% of use cases). The specific API list has not been compiled yet and will be determined once appropriate data sources or statistical tools are identified for analyzing API usage patterns.

Online demo

Click here to launch the online demo

Installation

# Install from PyPI
pip install tensorweaver

# Or install from source
git clone https://github.com/howl-anderson/tensorweaver.git
cd tensorweaver
poetry install

see poetry for more details if you don't have poetry installed.

Examples

See milestones for examples.

Documentation

see https://www.tensorweaver.ai

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • The project draws inspiration from educational frameworks like Micrograd, TinyFlow, and DeZero
  • Special thanks to the open-source deep learning community for their pioneering work
  • Thanks to all contributors and users who help improve this educational resource

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

tensorweaver-0.0.3.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tensorweaver-0.0.3-py3-none-any.whl (52.7 kB view details)

Uploaded Python 3

File details

Details for the file tensorweaver-0.0.3.tar.gz.

File metadata

  • Download URL: tensorweaver-0.0.3.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.11 Darwin/24.4.0

File hashes

Hashes for tensorweaver-0.0.3.tar.gz
Algorithm Hash digest
SHA256 77bae9a9b51d39275aac5a93d6d012dfb853f29fac36c64e88c17bd87094e426
MD5 0f775e0291b91660fd6dbb9a5dc5fc38
BLAKE2b-256 1ad913bfa3f0a74aeaaac49f25ccd94b807fd9d0bf98a019fe4add59b60b0082

See more details on using hashes here.

File details

Details for the file tensorweaver-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tensorweaver-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 52.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.11 Darwin/24.4.0

File hashes

Hashes for tensorweaver-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5a4b931f0d1532ea31374a94b914b6d4686be978dd289d0a99a86f52e0cb5cfb
MD5 08f098ee9ab3fa778b60b56ef1213e4c
BLAKE2b-256 7629f78722ebc4714e8ce8d0ea7c8758020a96c164dda361cd183d7df54d53d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page