-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Frontend][MXNet] Change mxnet graph traversal from recursion to iteration #2007
Conversation
nnvm/python/nnvm/frontend/mxnet.py
Outdated
else: | ||
node = _sym.Variable(name=name, **attr) | ||
graph[name] = node | ||
return [get_node(sym) for sym in symbol] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list is not a valid symbol, it's actually a GroupSymbol? Also here should assert if node is not None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Thanks @icemelon9 , @zhreshold can you take another look? |
@icemelon9 Thanks, LGTM now. |
Thanks @icemelon9 @zhreshold ! this is now merged |
Previous _from_mxnet_impl uses recursion to traverse graph. It causes call stack overflow when there're too many symbols in the graph. Now create symbols using topological order.