Commit a2a3f3c6 authored by Robert Kimball's avatar Robert Kimball

bool->char

parent 52296f41
...@@ -501,14 +501,14 @@ void Emitter::EmitParameterizedConstantBool(const ngraph::Node* n, ...@@ -501,14 +501,14 @@ void Emitter::EmitParameterizedConstantBool(const ngraph::Node* n,
// Special case where constant is stored directly in the output // Special case where constant is stored directly in the output
for (size_t i = 0; i < value.size(); i++) for (size_t i = 0; i < value.size(); i++)
{ {
TU << outputs[0].get_tensor().get_name() << "[" << i << "] = static_cast<bool>(" TU << outputs[0].get_tensor().get_name() << "[" << i << "] = static_cast<char>("
<< (value[i] ? "true" : "false") << ");\n"; << (value[i] ? "true" : "false") << ");\n";
} }
} }
else else
{ {
TU << "// this should be const but eigen hates const :(\n"; TU << "// this should be const but eigen hates const :(\n";
TU << "bool " << outputs[0].get_tensor().get_name() << "[] = {\n"; TU << "char " << outputs[0].get_tensor().get_name() << "[] = {\n";
for (size_t i = 0; i < value.size(); i++) for (size_t i = 0; i < value.size(); i++)
{ {
if (i != 0) if (i != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment