Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

fix backprop issue in mobilenetv3lite #59

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hasicx
Copy link

@hasicx hasicx commented Mar 18, 2024

MobileNetV3Lite failed with a RuntimeError during the first backprop stage. The error was caused in the final sequential stage of the network by a version mismatch between the ReLU and Dropout layers. Setting inplace=False in the Dropout final Dropout layer realigns the versions and enables backprop to function correctly.

The remaining changesets are required to adhere to the pre-commit formatting rules. The activation_layer argument in MobileNetV3 was missing a description in the init function docstring, which was added manually. The rest are stylistic changes triggered by the formatter.

Fixes #58

hasicx and others added 2 commits March 18, 2024 11:38
MobileNetV3Lite failed with a RuntimeError during the first
backprop stage. The error was caused in the final sequential stage of
the network by a version mismatch between the ReLU and Dropout layers.
Setting `inplace=False` in the Dropout layer realigns the versions and
enables backprop to function correctly.

The remaining changesets are triggered by formatter.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MobileNetV3Lite RuntimeError during backprop
1 participant