Coder Social home page Coder Social logo

jaxonloader's Introduction

Jaxonloader

A dataloader that no one asked for, but here it is anyway.

Documentation

Check out the docs here

Installation

Install this package using pip like so:

pip install jaxonloader

Philosophy

The jaxonloader package is designed to be as lightweight as possible. It's effectively the same as the PyTorch dataloader except that it uses Numpy as the backend.

Roadmap

Other types of datasets can be added but not the datasets ifself. I've decided that all I really need is the dataloader and dataset classes -- nothing more.

jaxonloader's People

Contributors

artur-galstyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jaxonloader's Issues

Torch dataloader not slow

Hi there, nice package but I think that the reason that torch dataloader was slow due to the fact that you are transforming to tensor and normalizing for torch but not for jax.

Don't load data into GPU!

Currently, if there is a GPU available, JAX will place arrays automatically into the GPU, which we don't want in our case. We want the data to live on the CPU and be loaded to GPU only when needed (i.e. during iteration time).

Add some pre-processing functions

The idea is to add a list of callables to the call function of the dataloader, which ideally get called before returning the row. The functions must be pure of course and take in a single row as input and output a single row with the same shape as the original row (although there are cases we might want to lift that requirement)

I'll check it out once I get my laptop!

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.