Skip to content
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

Create Graph failed, err info:0 in for loop #474

Open
azuredsky opened this issue Nov 11, 2020 · 0 comments
Open

Create Graph failed, err info:0 in for loop #474

azuredsky opened this issue Nov 11, 2020 · 0 comments

Comments

@azuredsky
Copy link

azuredsky commented Nov 11, 2020

class A
{
    void init()
   {
        init_tengine();
        this->_graph = create_graph(nullptr, "tengine", tmfile_name_.c_str());
    }
    void run()
    {
        prerun_graph(this->_graph) ;
       run_graph(this->_graph, 1);
    }
    void release()
    {
        postrun_graph(this->_graph);
        destroy_graph(this->_graph);
        release_tengine();
    }
private:
graph_t  _graph;
};

A a;
for (; ;)
{
    a.init();
    a.run();
    a.release();
}

I use A a;
when run a in for ,it crash in second loop call init() function.
it print : no serializer found for tengine

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

No branches or pull requests

1 participant