Skip to content

Instantly share code, notes, and snippets.

View zoegavrilovic's full-sized avatar
:atom:
Pythoning

Zorana Gavrilović zoegavrilovic

:atom:
Pythoning
  • Čačak, Serbia
View GitHub Profile
import torch
import torch.nn as nn
class conv_block_nested(nn.Module):
def __init__(self, in_ch, mid_ch, out_ch):
super(conv_block_nested, self).__init__()
self.activation = nn.ReLU(inplace=True)
self.conv1 = nn.Conv2d(in_ch, mid_ch, kernel_size=3, padding=1, bias=True)
self.bn1 = nn.BatchNorm2d(mid_ch)