MCPcopy Create free account
hub / github.com/DanielShalam/BPA / __init__

Method __init__

models/dropblock.py:8–11  ·  view source on GitHub ↗
(self, block_size)

Source from the content-addressed store, hash-verified

6
7class DropBlock(nn.Module):
8 def __init__(self, block_size):
9 super(DropBlock, self).__init__()
10
11 self.block_size = block_size
12
13 def forward(self, x, gamma):
14 # shape: (bsize, channels, height, width)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected