Skip to content

salgue441/brezel

Repository files navigation

Brezel: Modern C++20 Tensor Framework

Banner

Overview

Brezel is a high-performance tensor computation library that combines the elegance of PyTorch's API with the performance benefits of modern C++20. Designed for researchers, engineers, and data scientists who need efficient tensor operations without sacrificing usability.

auto a = bz::tensor::ones({2, 3});
auto b = bz::tensor::arange(6).reshape({2, 3});

// Perform operations
auto c = a * b + brezel::sin(b);

// Neural Network Operations
auto model = bz::nn::Sequential(
  bz::nn::Linear(784, 128),
  bz::nn::ReLU(),
  bz::nn::Linear(128, 10)
)

auto predictions = model->forward(input);

Key Features

  • πŸš€ Performance-First: Optimized core using SIMD, multi-threading, and GPU acceleration
  • πŸ”§ Modern C++20: Leveraging concepts, ranges, and other modern C++ features
  • 🧠 Deep Learning Primitives: Neural network building blocks with automatic differentiation
  • πŸ“Š Data Science Tools: Statistical functions, data loading, and visualization utilities
  • πŸ“¦ No Dependencies: Core functionality has minimal external dependencies
  • πŸ”Œ Extensibility: Easy to add custom operations and backends

About

Tensor framework built with modern C++ features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published