Commit 8970915b authored by Jaikrishnan Menon's avatar Jaikrishnan Menon Committed by Robert Kimball

Fix output element type for selection functions (#1629)

* Fix output element type for selection functions

* style
parent c23a972d
...@@ -82,7 +82,8 @@ namespace ngraph ...@@ -82,7 +82,8 @@ namespace ngraph
char output; char output;
inputs.emplace_back(backend->create_tensor(element::f32, Shape{}, &x)); inputs.emplace_back(backend->create_tensor(element::f32, Shape{}, &x));
inputs.emplace_back(backend->create_tensor(element::f32, Shape{}, &y)); inputs.emplace_back(backend->create_tensor(element::f32, Shape{}, &y));
outputs.emplace_back(backend->create_tensor(element::f32, Shape{}, &output)); outputs.emplace_back(
backend->create_tensor(element::boolean, Shape{}, &output));
select_external_function->make_call_frame()->call(outputs, inputs); select_external_function->make_call_frame()->call(outputs, inputs);
return output; return output;
}; };
......
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