utensor_cgen icon indicating copy to clipboard operation
utensor_cgen copied to clipboard

Hyphens in TF operation names being written into generated C++ code

Open PeteBlackerThe3rd opened this issue 6 years ago • 1 comments

using : utensor-cli, version 0.3.5

I've just found that if Tensorflow operation names contain hyphens these are translated directly into c++ identifiers in the generated code, resulting in invalid code.

I couldn't spot an obvious C identifier sanitiser function in the code, but hopefully this will be an easy fix.

PeteBlackerThe3rd avatar Sep 12 '19 08:09 PeteBlackerThe3rd

Hi @PeteBlackerThe3rd, thanks for reporting the issue. Can you please provide a pb file so I can take a look what's the root cause to the issue?

dboyliao avatar Dec 14 '19 06:12 dboyliao