diff --git a/ngraph/core/reference/include/ngraph/runtime/reference/elu.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/elu.hpp index 3440ece42aa..d04b4c3a88a 100644 --- a/ngraph/core/reference/include/ngraph/runtime/reference/elu.hpp +++ b/ngraph/core/reference/include/ngraph/runtime/reference/elu.hpp @@ -30,9 +30,9 @@ namespace ngraph { for (size_t i = 0; i < count; i++) { - out[i] = arg[i] < 0 ? alpha * (std::exp(arg[i]) - 1.0) : arg[i]; + out[i] = arg[i] < T(0) ? T(alpha * (std::exp(arg[i]) - 1.0)) : arg[i]; } } } } -} +} \ No newline at end of file diff --git a/ngraph/test/runtime/interpreter/reference/gelu.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/gelu.hpp similarity index 100% rename from ngraph/test/runtime/interpreter/reference/gelu.hpp rename to ngraph/core/reference/include/ngraph/runtime/reference/gelu.hpp diff --git a/ngraph/test/runtime/interpreter/reference/grn.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/grn.hpp similarity index 100% rename from ngraph/test/runtime/interpreter/reference/grn.hpp rename to ngraph/core/reference/include/ngraph/runtime/reference/grn.hpp diff --git a/ngraph/test/runtime/interpreter/reference/mod.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/mod.hpp similarity index 100% rename from ngraph/test/runtime/interpreter/reference/mod.hpp rename to ngraph/core/reference/include/ngraph/runtime/reference/mod.hpp diff --git a/ngraph/test/runtime/interpreter/reference/selu.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/selu.hpp similarity index 100% rename from ngraph/test/runtime/interpreter/reference/selu.hpp rename to ngraph/core/reference/include/ngraph/runtime/reference/selu.hpp diff --git a/ngraph/test/runtime/interpreter/reference/transpose.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/transpose.hpp similarity index 100% rename from ngraph/test/runtime/interpreter/reference/transpose.hpp rename to ngraph/core/reference/include/ngraph/runtime/reference/transpose.hpp diff --git a/ngraph/test/runtime/interpreter/evaluates_map.cpp b/ngraph/test/runtime/interpreter/evaluates_map.cpp index b40942d3f5d..c96a14b3d90 100644 --- a/ngraph/test/runtime/interpreter/evaluates_map.cpp +++ b/ngraph/test/runtime/interpreter/evaluates_map.cpp @@ -19,52 +19,51 @@ #include "backend.hpp" #include "ngraph/ops.hpp" -#include #include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include #include +#include +#include +#include #include +#include +#include +#include #include +#include +#include #include +#include #include #include #include +#include #include #include #include #include +#include +#include #include +#include #include #include +#include #include -#include "ngraph/runtime/reference/avg_pool.hpp" -#include "ngraph/runtime/reference/convolution.hpp" -#include "ngraph/runtime/reference/ctc_greedy_decoder.hpp" -#include "ngraph/runtime/reference/ctc_loss.hpp" -#include "ngraph/runtime/reference/cum_sum.hpp" -#include "ngraph/runtime/reference/detection_output.hpp" -#include "ngraph/runtime/reference/embedding_bag_offsets_sum.hpp" -#include "ngraph/runtime/reference/embedding_bag_packed_sum.hpp" -#include "ngraph/runtime/reference/embedding_segments_sum.hpp" -#include "ngraph/runtime/reference/fake_quantize.hpp" -#include "ngraph/runtime/reference/gather_tree.hpp" -#include "ngraph/runtime/reference/hard_sigmoid.hpp" -#include "ngraph/runtime/reference/log_softmax.hpp" -#include "ngraph/runtime/reference/lrn.hpp" -#include "ngraph/runtime/reference/mvn.hpp" -#include "ngraph/runtime/reference/normalize_l2.hpp" -#include "ngraph/runtime/reference/psroi_pooling.hpp" -#include "ngraph/runtime/reference/region_yolo.hpp" -#include "ngraph/runtime/reference/roi_pooling.hpp" -#include "ngraph/runtime/reference/scatter_nd_update.hpp" -#include "ngraph/runtime/reference/squared_difference.hpp" -#include "reference/elu.hpp" -#include "reference/gelu.hpp" -#include "reference/grn.hpp" -#include "reference/selu.hpp" using namespace ngraph; using namespace std; diff --git a/ngraph/test/runtime/interpreter/reference/elu.hpp b/ngraph/test/runtime/interpreter/reference/elu.hpp deleted file mode 100644 index d04b4c3a88a..00000000000 --- a/ngraph/test/runtime/interpreter/reference/elu.hpp +++ /dev/null @@ -1,38 +0,0 @@ -//***************************************************************************** -// Copyright 2017-2020 Intel Corporation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -//***************************************************************************** - -#pragma once - -#include -#include - -namespace ngraph -{ - namespace runtime - { - namespace reference - { - template - void elu(const T* arg, T* out, size_t count, double alpha) - { - for (size_t i = 0; i < count; i++) - { - out[i] = arg[i] < T(0) ? T(alpha * (std::exp(arg[i]) - 1.0)) : arg[i]; - } - } - } - } -} \ No newline at end of file