Commit 9ea38d22 authored by Chris Sullivan's avatar Chris Sullivan Committed by Robert Kimball

Double curly-brace initialization (required by clang for non-templated…

Double curly-brace initialization (required by clang for non-templated functions) causes a compiler error in centos. (#1561)

Since the warning is not enforced in clang for templated functions, we can get around the centos compiler error with only a single set of curly braces here.
parent 836ee508
......@@ -1706,7 +1706,7 @@ size_t runtime::gpu::CUDAEmitter::build_primitive(const op::Softmax* node)
auto input_type = args[0].get_element_type().c_type_string();
auto output_type = out[0].get_element_type().c_type_string();
auto exp_index = build_elementwise<ngraph::op::Exp>({{input_type, output_type}}, input_shape);
auto exp_index = build_elementwise<ngraph::op::Exp>({input_type, output_type}, input_shape);
auto reduce_index = cudnn_emitter->build_reduce_forward(
CUDNN_REDUCE_TENSOR_ADD, output_type, input_shape, axes);
size_t divide_index = build_softmax_divide(
......
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