Skip to content

Andrawzyf/Tensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensor

About

This is a project to implement the tensor calcuation library and (inference) neural netowrk in c++, can see it as a revision of PyTorch and ncnn, the differnece is that I remove all codes that not relate to CPU, maybe will support GPU after but not now.

The netowrk structure is same as Neural Network with some enhancement and is inspired by ConvNetJS, Darknet, Caffe and ncnn.

It aims to enhance the performance on mobile phone platform.

The main purpose of this project is used for NTHU電機系實作專題.

Add some function for image loading and saving, which is powered by stb_image.

Add some drawing for image, which is powered by OpenCV.

Feature

  • C++17
  • No dependencies
  • Multi-thread support with OpenMp
  • Symobolic operation
  • Arm optimization

Documentation

Build and run

Linux, MacOS

mkdir build && cd build
cmake ..
make -j 8

Windows

g++ -Os -fopenmp -mavx2 -mfma -o otter *.cpp

Run

  • $ ./otter

Thanks for and reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.8%
  • CMake 1.1%
  • Makefile 0.1%