uTensor / utensor_cgen

C++ code generator for uTensor https://utensor-cgen.readthedocs.io/en/latest/
Apache License 2.0
50 stars 40 forks source link

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

Open PeteBlackerThe3rd opened 5 years ago

PeteBlackerThe3rd commented 5 years ago

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.

dboyliao commented 4 years ago

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?