-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Deserialization problem with gluon ValueError: There are multiple outputs with name ...
#12795
Comments
@mxnet-label-bot [Bug, Gluon] |
This seems similar to #12783 |
Looks like the problem occurs with
gives
|
I observed that the issue occurs when 2 inputs pass through the same block. Trying to understand the root cause for this as it works fine with mxnet 1.2.1 |
https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/gluon/block.py#L1050 Trying to root cause and solution with the help of @safrooze and @zhreshold |
@lostella while the issue is being root caused, one work around in this case would be to use different blocks with shared parameters:
|
i use mxnet 1.3.0 also meet this problem, In my code ,it was caused by code ' sym.get_internals()', after I deleted it , then it can run . |
Need to check and see if issue is resolved in #14619 (comment) |
The "Minimum reproducible example" works for me on 1.5 and current master. This can probably be closed? |
Description
For a simple HybridBlock, saving and deserializing the symbol fails with mxnet 1.3 when an embedding layer is used multiple times. This used to work with mxnet 1.2
It may or may not be related to this issue: #12783
Environment info (Required)
Package used (Python/R/Scala/Julia):
I'm using python
Error Message:
(Paste the complete error message, including stack trace.)
Minimum reproducible example
Steps to reproduce
Run the code.
The text was updated successfully, but these errors were encountered: