question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Relay] Flaky Compilation for Gluoncv SSD model

See original GitHub issue

I’m adding relay support for gluoncv ssd models. The end to end compilation randomly fails:https://github.com/kevinthesun/tvm/blob/RefactorSSDOperator/tutorials/nnvm/deploy_ssd.py

First build RefactorSSDOperator branch under my folk tvm with USE_SORT ON Then run the test several times:

python deploy_ssd.py -f relay

Sometimes it succeeds but sometimes fails. The segfault happens inside op fuse pass: https://github.com/kevinthesun/tvm/blob/RefactorSSDOperator/src/relay/pass/fuse_ops.cc#L741

@jroesch

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
masahicommented, Jan 15, 2019

@kevinthesun I found the bug! deploy_ssd.py works with relay.

please change this line to

for (size_t i = 0; i < new_fields.size() && isolated; ++i) {

I’ll send a PR with more proper fix soon.

0reactions
masahicommented, Jan 15, 2019

@jroesch ok, I’m still trying to figure out the root cause of the bug. The network is huge and the structure is unusual. Here is the 1600 line dump of Relay text, after compiling this network 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved][Relay] Flaky compilation behavior - Development
I found an issue when I tried to add gluoncv SSD support for relay.
Read more >
01. Predict with pre-trained SSD models
This article shows how to play with pre-trained SSD models with only a few lines of code. First let's import some necessary libraries:...
Read more >
incubator-tvm/NEWS.md at master - GitHub
Relay supports algebraic data types, closures, control flow, and recursion, allowing it to directly represent more complex models than computation ...
Read more >
TVM Change Log - Google Git
Relay compilation engine; Relay pattern language; CI and build process ... Added a set of utilities that allows a model to be run...
Read more >
NEWS.md · 7cfcad9894969e9cc7d08b3cf4662b5e9fcde03a ...
Introduced HybridModule (#2477) so that normal TVM schedule can be compiled to hybrid target, run and dumped to Hybrid Script. Relay ][Frontend][Tensorflow] add ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found