MobileNetV2
Image classification153 ops3.5M params
Torchvision's MobileNetV2 class, built directly with a 10-class head.
Image classification · 153 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
torchvision.models.MobileNetV2(num_classes=10)
This member is torchvision's MobileNetV2 main class, instantiated directly with a 10-class output head rather than through a pretrained builder. The library's documentation ties the architecture to the MobileNetV2: Inverted Residuals and Linear Bottlenecks paper. The class exposes a width multiplier that adjusts the number of channels in each layer, an inverted-residual setting that defines the network structure, and a rounding parameter that keeps channel counts a multiple of a chosen number. The inverted residual building block, the normalization layer and the dropout probability are all arguments of the class as well, so the traced graph is the stock stack with everything but the class count left at its default.
Key idea. An inverted-residual, linear-bottleneck mobile CNN, exposed in torchvision as a configurable class with a width multiplier and class count.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.