All models

HAQ (Hardware-Aware Automated Quantization)

Torchvision's MobileNetV2 class, built directly with a 10-class head.

Image classification · 153 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (21 KB)

Open in a new tab

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.

At a glance

Parameters
2.2M
Operations
153
Framework
PyTorch
Recurrent
No
Published
2019
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m13599
Graph hash
bd70e3b4a6838cf8bfa0e0fe87c35ad4d6f4388b2be20d89194b4e67c7dac339
Skeleton hash
901b14a7a3f59168b8b613da48cc8b3d58f9cb63a6b172bad83d02fc3947edda
Architecture hash
cd2e73f9871e295d555bf791b51ee4026a758f43a4ef865f97b8977074edccc9
Diagram SHA-256
d8d0f6881725a24a5e01da39d61541f77e35e6a898892a2ac49e112cf2c9287d
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

torchvision.models.MobileNetV2(num_classes=10)

What it is

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.

  • mobilenetv2
  • mobilenet v2
  • haq
  • hardware-aware automated quantization
  • inverted residuals
  • linear bottlenecks
  • mobile image classification
  • torchvision

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.