MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / __init__

Method __init__

models/densenet.py:129–135  ·  view source on GitHub ↗
(self, num_input_features: int, num_output_features: int)

Source from the content-addressed store, hash-verified

127
128class _Transition(nn.Sequential):
129 def __init__(self, num_input_features: int, num_output_features: int) -> None:
130 super(_Transition, self).__init__()
131 self.add_module('norm', nn.BatchNorm2d(num_input_features))
132 self.add_module('relu', nn.ReLU(inplace=True))
133 self.add_module('conv', nn.Conv2d(num_input_features, num_output_features,
134 kernel_size=1, stride=1, bias=False))
135 self.add_module('pool', nn.AvgPool2d(kernel_size=2, stride=2))
136
137
138class DenseNet(nn.Module):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected