LeNet

class paddle.vision.models. LeNet ( num_classes=10 ) [source]

LeNet model from `"LeCun Y, Bottou L, Bengio Y, et al. Gradient-based learning applied to document recognition[J]. Proceedings of the IEEE, 1998, 86(11): 2278-2324.`_

Parameters

num_classes (int) – output dim of last fc layer. If num_classes <=0, last fc layer will not be defined. Default: 10.

Examples

from paddle.vision.models import LeNet

model = LeNet()
forward ( inputs )

Defines the computation performed at every call. Should be overridden by all subclasses.

Parameters
  • *inputs (tuple) – unpacked tuple arguments

  • **kwargs (dict) – unpacked dict arguments