ArmNN
 25.11
Loading...
Searching...
No Matches
FloorDiv.hpp
Go to the documentation of this file.
1//
2// Copyright © 2024 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8namespace armnn
9{
10
11template<typename T>
12 struct floorDiv
13{
14 typedef T result_type;
16 T operator () (const T& inputData0, const T& inputData1) const
17 {
18 double result = static_cast<double>(inputData0)/static_cast<double>(inputData1);
19 return static_cast<T>(std::floor(result));
20 }
21};
22
23} //namespace armnn
Copyright (c) 2021 ARM Limited and Contributors.
T operator()(const T &inputData0, const T &inputData1) const
Definition FloorDiv.hpp:16