Skip to content

Instantly share code, notes, and snippets.

View mrinath123's full-sized avatar
😄

Mriganka Nath mrinath123

😄
View GitHub Profile
@mrinath123
mrinath123 / ConvMixer.py
Last active October 17, 2021 05:50
Convmixer Architecture
import torch
import torch.nn as nn
import torch.nn.functional as F
#torch.__version__ should be 1.9
class ConvMixer(nn.Module):
def __init__(self,no_of_op_channels , depth , kernal , patch_size ,output ):
super().__init__()
self.o = no_of_op_channels
self.d = depth