20.11
Abs.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2019 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
#include <iostream>
9
10
namespace
armnn
11
{
12
template
<
typename
T>
13
struct
abs
:
public
std::unary_function<T, T>
14
{
15
T
16
operator ()
(
const
T& inputData)
const
17
{
18
return
std::abs(inputData);
19
}
20
};
21
22
}
//namespace armnn
armnn::abs
Definition:
Abs.hpp:13
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
armnn::abs::operator()
T operator()(const T &inputData) const
Definition:
Abs.hpp:16
src
backends
reference
workloads
Abs.hpp
Generated on Wed Nov 25 2020 09:59:14 for ArmNN by
1.8.13