FLImaging
7.8.25.3
Toggle main menu visibility
FLImagingAI
FLImagingAI
BackendAdaptiveAvgPool2D.h
1
#pragma once
2
3
#if _MSC_VER >= 1900 && defined(_M_X64)
4
5
#include "BackendBase.h"
6
#include "Parameters.h"
7
8
namespace
FLImaging
9
{
10
namespace
AI
11
{
12
template
<
typename
T>
13
class
FL_EXPORT CTensor;
14
15
template
<
typename
T>
16
class
FL_EXPORT CBackendAdaptiveAvgPool2D :
public
CBackendBase<T>
17
{
18
public
:
19
CBackendAdaptiveAvgPool2D();
20
CBackendAdaptiveAvgPool2D(
const
CBackendAdaptiveAvgPool2D<T>& ba);
21
virtual
~CBackendAdaptiveAvgPool2D();
22
23
virtual
const
CResult SetAdaptivePoolParams(
const
SAdaptivePool2DParameters& adaptivePoolParams);
24
virtual
SAdaptivePool2DParameters GetAdaptivePoolParams();
25
26
virtual
const
CResult Forward(
const
CTensor<T>* pTsrOperand, CTensor<T>* pTsrResult);
27
virtual
const
CResult Backward(
const
CTensor<T>* pTsrOperand, CTensor<T>* pTsrResult,
bool
bAdd =
false
, CTensor<T>* pTsrDerivativeTemp =
nullptr
);
28
29
DeclareGetClassType();
30
SupportToDuplicateObjectWithoutCreateNewObject(CBackendAdaptiveAvgPool2D<T>, *
this
);
31
32
protected
:
33
SAdaptivePool2DParameters m_adaptivePoolParams;
34
};
35
}
36
}
37
38
#endif
FLImaging::AI
Definition
AlgorithmAIBase.h:18
FLImaging
Generated on
for FLImaging by
1.17.0