Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datamodules

Data modules for PyTorch 🔥.

Installation

pip install git+https://github.com/oelin/datamodules

Usage

Define a datamodule.

from datamodules import datamodule

class Autoencoder(datamodule):
    encoder: Encoder
    decoder: Decoder

    def forward(self, x: torch.Tensor) -> torch.Tensor
        x = self.encoder(x)
        x = self.decoder(x)

        return x

Initialize it.

autoencoder = Autoencoder(
    encoder=Encoder(...),
    decoder=Decoder(...),
)

About

Data modules for PyTorch 🔥.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages