Coder Social home page Coder Social logo

ashvardanian / tenpack Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 111 KB

Fast Tensors Packaging library for text, image, video, and audio data compatible with PyTorch, TensorFlow, & NumPy ๐Ÿ–ผ๏ธ๐ŸŽต๐ŸŽฅ โžก๏ธ ๐Ÿง 

C++ 51.07% C 23.73% CMake 25.20%
clip laion multi-modal numpy parser pytorch simd tensor tensorflow transformer

tenpack's Introduction

TenPack

Three simple things this library does to you:

  1. Guess the media type from raw bytes,
  2. Parse its' dimensions, sizes, lengths, etc.,
  3. Unpack data into regular preallocated Tensors.

Where do we use it? To connect the Data Storage layer of UKV to High-Performance Computing libraries like TensorFlow and PyTorch.

How it works?

Most common file-formats have "signatures" or "magic numbers" embedded into them. Often, as the prefix of the byte-stream.

Libraries implementing the first step have been implemented for other languages:

Alternatives for Tensor Exports

In fact, TenPack is just a CMake-friendly generalization of those libraries with a C interface and focus on memory reusing.

tenpack's People

Contributors

arman-ghazaryan avatar ashvardanian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tenpack's Issues

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.