class MobileNetV1 ( scale=1.0, num_classes=1000, with_pool=True ) [source]

MobileNetV1 model from “MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications”.

  • scale (float) – scale of channels in each layer. Default: 1.0.

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

  • with_pool (bool) – use pool before the last fc layer or not. Default: True.


from import MobileNetV1

model = MobileNetV1()
forward ( x )

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

  • *inputs (tuple) – unpacked tuple arguments

  • **kwargs (dict) – unpacked dict arguments