Skip to content

Conversation

@icemelon
Copy link
Member

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.

@icemelon icemelon requested a review from zhreshold October 26, 2018 22:36
else:
node = _sym.Variable(name=name, **attr)
graph[name] = node
return [get_node(sym) for sym in symbol]
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@tqchen
Copy link
Member

tqchen commented Oct 29, 2018

Thanks @icemelon9 , @zhreshold can you take another look?

@zhreshold
Copy link
Member

@icemelon9 Thanks, LGTM now.

@tqchen tqchen merged commit 25e4dc5 into apache:master Oct 29, 2018
@tqchen
Copy link
Member

tqchen commented Oct 29, 2018

Thanks @icemelon9 @zhreshold ! this is now merged

FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants