MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / as_sequential

Method as_sequential

timm/models/efficientnet.py:463–468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

461 efficientnet_init_weights(self)
462
463 def as_sequential(self):
464 layers = [self.conv_stem, self.bn1, self.act1]
465 layers.extend(self.blocks)
466 layers.extend([self.conv_head, self.bn2, self.act2, self.global_pool])
467 layers.extend([nn.Dropout(self.drop_rate), self.classifier])
468 return nn.Sequential(*layers)
469
470 def get_classifier(self):
471 return self.classifier

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected