DEV Community

Cover image for Introducing Tensor++
Suvrayan Bandyopadhyay
Suvrayan Bandyopadhyay

Posted on

2 1

Introducing Tensor++

[link]https://github.com/SuvrayanBandyopadhyay/TensorPlusPlus

Hey everyone,

Nowadays, everyone seems to be talking about Artificial Intelligence, especially with the rise of transformers and large language models. Due to this, it seems that everyone wants to become an ML "engineer" as soon as possible to profit from this trend.

Sadly, i have noticed that people around me blindly copy code without understanding how neural networks or tensors even work. Every project they do is just an api call to an llm like chatGPT.

Now while I am not against using libraries, I do believe some amount of knowledge about how things work is vital.

If you are like me, and you want to know more about how one can implement tensor mathematics and neural networks, check out this educational c++ library I have been working on

https://github.com/SuvrayanBandyopadhyay/TensorPlusPlus

Features (so far)

  1. Basic Tensor operations (Addition, Subtraction, Matrix multiplication, Hadamard Product (Element-wise product)

  2. Neural networks, with the following supported layers

  • Dense
  • RELU
  • Leaky RELU
  • Tanh
  • Sigmoid
  • Softmax
  • Max - pooling
  • Convolutional

Planed features

  • RNNs
  • Optimizers for the learning rate

I am still working on the documentation, but feel free to look at the code and let me know if you find any issues or bugs. If you have any suggestions or improvements please let me know in the comments.

Happy coding.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs