2020-02-17 08:23:05 +01:00
|
|
|
/*******************************************************************************
|
2020-05-14 12:41:55 +02:00
|
|
|
* Copyright (c) 2020 Konduit K.K.
|
2020-02-17 08:23:05 +01:00
|
|
|
*
|
|
|
|
* This program and the accompanying materials are made available under the
|
|
|
|
* terms of the Apache License, Version 2.0 which is available at
|
|
|
|
* https://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.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
******************************************************************************/
|
|
|
|
//
|
2020-05-14 12:41:55 +02:00
|
|
|
// @author AbdelRauf
|
2020-02-17 08:23:05 +01:00
|
|
|
//
|
|
|
|
|
2020-05-14 12:41:55 +02:00
|
|
|
#include <ops/declarable/helpers/cpu/indexReductions.hpp>
|
2020-02-17 08:23:05 +01:00
|
|
|
|
2020-06-01 10:47:21 +02:00
|
|
|
|
|
|
|
#cmakedefine LIBND4J_TYPE_GEN
|
|
|
|
|
|
|
|
#if defined(PAIRWISE_TYPE_GEN) || defined(INT_TYPE_GEN) || defined(FLOAT_TYPE_GEN) || defined(LIBND4J_TYPE_GEN)
|
2020-03-02 10:49:41 +01:00
|
|
|
namespace sd {
|
2020-02-17 08:23:05 +01:00
|
|
|
namespace ops {
|
|
|
|
namespace helpers {
|
2020-06-01 10:47:21 +02:00
|
|
|
#if defined(LIBND4J_TYPE_GEN)
|
2020-05-14 12:41:55 +02:00
|
|
|
BUILD_DOUBLE_TEMPLATE(template void argAbsMax_, (const NDArray& input, NDArray& output, const std::vector<int>& dimensions), LIBND4J_TYPES_@FL_TYPE_INDEX@, INDEXING_TYPES);
|
2020-06-01 10:47:21 +02:00
|
|
|
#endif
|
|
|
|
|
2020-02-17 08:23:05 +01:00
|
|
|
}
|
|
|
|
}
|
2020-06-01 10:47:21 +02:00
|
|
|
}
|
|
|
|
#endif
|