| 1 | /******************************************************************************* |
| 2 | * Copyright 2017-2018 Intel Corporation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | *******************************************************************************/ |
| 16 | |
| 17 | #include "cpu_engine.hpp" |
| 18 | |
| 19 | /* |
| 20 | #include "cpu/ref_sum.hpp" |
| 21 | #include "cpu/simple_sum.hpp" |
| 22 | */ |
| 23 | |
| 24 | namespace mkldnn { |
| 25 | namespace impl { |
| 26 | namespace cpu { |
| 27 | |
| 28 | using spd_create_f = mkldnn::impl::engine_t::sum_primitive_desc_create_f; |
| 29 | |
| 30 | namespace { |
| 31 | #define INSTANCE(...) __VA_ARGS__::pd_t::create |
| 32 | static const spd_create_f cpu_sum_impl_list[] = { |
| 33 | /* |
| 34 | INSTANCE(simple_sum_t<data_type::f32>), |
| 35 | INSTANCE(ref_sum_t), |
| 36 | */ |
| 37 | nullptr, |
| 38 | }; |
| 39 | #undef INSTANCE |
| 40 | } |
| 41 | |
| 42 | const spd_create_f *cpu_engine_t::get_sum_implementation_list() const { |
| 43 | return cpu_sum_impl_list; |
| 44 | } |
| 45 | |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |