MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / get_logits

Method get_logits

examples/ResNet/imagenet-resnet.py:36–40  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

34 "(mode={}, depth={}) not implemented!".format(mode, depth)
35
36 def get_logits(self, image):
37 with argscope([Conv2D, MaxPooling, GlobalAvgPooling, BatchNorm], data_format=self.data_format):
38 return resnet_backbone(
39 image, self.num_blocks,
40 preact_group if self.mode == 'preact' else resnet_group, self.block_func)
41
42
43def get_config(model):

Callers

nothing calls this directly

Calls 2

argscopeFunction · 0.90
resnet_backboneFunction · 0.90

Tested by

no test coverage detected