Coder Social home page Coder Social logo

nensor's Introduction

Nensor

Lightweight .NET Tensor library with hardware intrinsic support.

Now based on the architecture of TinyGrad

What is this?

A library that provides a simple way to work with Tensors (multi-dimensional arrays) of abitrary type, size and shape. In a similar vein to Pytorch, Numpy or Tensorflow, but with the following goals:

  • Simple and lightweight with Zero dependencies - No BLAS, BLIS, MKL or any giant C++ templated packages required.
  • Using only managed code (no C or C++ bindings unless absolutely necessary).
  • Fully type and memory safe. - Unlike C libraries.
  • Thread-safe. - Unlike libraries that call out to Python.
  • Lazy evaluation - Computation is deferred until the graph is realized (graph based non-destructive tensor operations).
  • Acceptable performance, while not necessarily state of the art. - Utilizing hardware intrinsics AVX512, AvdSimd (ARM) etc.

Why would anyone do this?

  1. To learn more about the logic and math behind libraries Numpy and Tensorflow.
  2. To experiment with .NET generic math.
  3. To see how far .NET performance can be pushed.

Status

Very experimental.

How to contribute

Grab the code and play, you will probably want to use Visual Studio Code and .NET 8.0.

nensor's People

Contributors

flatlinerdoa avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

nensor's Issues

Write a basic np.array replacement

Initially it's tempting to take something NumSharp as a dependency to get the basics working,
this could very easily become a crutch and it defeats the main purpose of this library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.