Spaces:
Sleeping
Sleeping
File size: 287 Bytes
35d85a5 |
1 2 3 4 5 6 7 8 9 10 11 |
import torch
import torch.nn as nn
class batch_norm(nn.Module):
def __init__(self, inp):
super().__init__()
self.batch = nn.BatchNorm2d(inp)
self.relu = nn.ReLU()
def forward(self, x):
b = self.batch(x)
op = self.relu(b)
return op |