-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Deferred Initialization Error after a forward pass #9226
Comments
Am also facing the same issue. Is there any update on this ? |
Turned out that I was using not using some layers in the forward function, that were already defined under the blocks scope. Fixed now! |
Proposed Labels: Python, Example, HowTo |
@rlantz-cfa I think your problem is the same as @sampathchanda, you have some parameters that have not been initialized because they have never been needed in the first forward pass. However you are trying to update them, probably because you passed |
@ThomasDelteil sorry, I am a newbie into MXNet, what should we pass into the |
Problem is not what you pass to Trainer. Problem is, you have some layer that is not being used in forward pass. Please ask the question at discuss.mxnet.io with a reproducible example. This is not a bug. Hence closing this issue. |
Description
I'm following the Gluon Tutorial, and am attempting to build a custom object detection model by modifying the code found here. (http://gluon.mxnet.io/chapter08_computer-vision/object-detection.html) After building out the architecture, I try running the training loop and end up with a Deferred initialization error even after I've (apparently) made a successful forward pass.
Environment info (Required)
Using SageMaker with the python 3.6 mxnet kernel. The version of mxnet is 0.12.1
Error Message:
Minimum reproducible example
If helpful I can paste in the network architecture as well, though it's pretty much the same as in the Gluon tutorial linked above with the small exception that my data input shape is
(400, 400)
.The text was updated successfully, but these errors were encountered: