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

Method get_logits

examples/ImageNetModels/imagenet_utils.py:369–376  ·  view source on GitHub ↗

Args: image: 4D tensor of ``self.input_shape`` in ``self.data_format`` Returns: Nx#class logits

(self, image)

Source from the content-addressed store, hash-verified

367
368 @abstractmethod
369 def get_logits(self, image):
370 """
371 Args:
372 image: 4D tensor of ``self.input_shape`` in ``self.data_format``
373
374 Returns:
375 Nx#class logits
376 """
377
378 def optimizer(self):
379 lr = tf.get_variable('learning_rate', initializer=0.1, trainable=False)

Callers 1

build_graphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected