Tvm: [RELAY] Avoid eager creation of global target object

Created on 16 May 2019  路  4Comments  路  Source: apache/tvm

https://github.com/dmlc/tvm/blob/master/src/relay/backend/build_module.cc#L54

Not all target is enabled.

It is usually not a good practice to eagerly create a global static object(which might have initialization order issue).

high bug

Most helpful comment

All 4 comments

cc @zhiics please fix ASAP

cc @jroesch @vinx13 @wweic @hlu1

I will move them back to std::string and create when necessary.

@tqchen Thanks for the fix.

Was this page helpful?
0 / 5 - 0 ratings