MCPcopy Create free account
hub / github.com/ARM-software/armnn / ValidateFloorOperator

Function ValidateFloorOperator

delegate/opaque/src/SharedFunctions.cpp:14–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12{
13
14TfLiteStatus ValidateFloorOperator(DelegateData& delegateData,
15 TfLiteOpaqueContext* tfLiteContext,
16 const armnn::TensorInfo& inputTensorInfo,
17 const armnn::TensorInfo& outputTensorInfo)
18{
19 bool isSupported = false;
20 auto validateFunc = [&](const armnn::TensorInfo& outInfo, bool& isSupported)
21 {
22 FORWARD_LAYER_OPAQUE_SUPPORT_FUNC("FLOOR",
23 tfLiteContext,
24 IsFloorSupported,
25 delegateData.m_Backends,
26 isSupported,
27 armnn::BackendId(),
28 inputTensorInfo,
29 outInfo);
30 };
31 validateFunc(outputTensorInfo, isSupported);
32 return isSupported ? kTfLiteOk : kTfLiteError;
33}
34
35TfLiteStatus ValidateFusedActivationOperator(DelegateData& delegateData,
36 TfLiteOpaqueContext* tfLiteContext,

Callers 2

VisitFloorOperatorFunction · 0.70
ValidateFloorDivOperatorFunction · 0.70

Calls 1

BackendIdClass · 0.50

Tested by

no test coverage detected