You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by stuart_yang via Apache TVM Discuss <no...@discuss.tvm.ai> on 2020/10/14 13:22:10 UTC

[Apache TVM Discuss] [Questions] Why does GetUniqueName replace "." with "_"?


Hi Guys, 

I notice below code replace "." with "_" for variable's name in codegen phase. What is purpose of this ?
[src/target/source/codegen_source_base.cc]
std::string CodeGenSourceBase::GetUniqueName(std::string prefix) {
  for (size_t i = 0; i < prefix.size(); ++i) {
    if (prefix[i] == '.') prefix[i] = '_';

Thanks





---
[Visit Topic](https://discuss.tvm.apache.org/t/why-does-getuniquename-replace-with/8182/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/ae02c07817d76320c1407f24d95b2c56ac75bb2e8cba064dc842aee968fe58f4).