summaryrefslogtreecommitdiff
path: root/nn/common/operations/Gather.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nn/common/operations/Gather.cpp')
-rw-r--r--nn/common/operations/Gather.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nn/common/operations/Gather.cpp b/nn/common/operations/Gather.cpp
index 6707b6d94..5571a6501 100644
--- a/nn/common/operations/Gather.cpp
+++ b/nn/common/operations/Gather.cpp
@@ -59,7 +59,7 @@ inline bool eval(const T* inputData, const Shape& inputShape, int32_t axis,
} // namespace
-bool validate(const IOperationValidationContext* context) {
+Result<Version> validate(const IOperationValidationContext* context) {
NN_RET_CHECK_EQ(context->getNumInputs(), kNumInputs);
NN_RET_CHECK_EQ(context->getNumOutputs(), kNumOutputs);
OperandType inputType = context->getInputType(kInputTensor);
@@ -73,9 +73,9 @@ bool validate(const IOperationValidationContext* context) {
{inputType, OperandType::INT32, OperandType::TENSOR_INT32}));
NN_RET_CHECK(validateOutputTypes(context, {inputType}));
if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) {
- return validateVersion(context, Version::ANDROID_R);
+ return Version::ANDROID_R;
} else {
- return validateVersion(context, Version::ANDROID_Q);
+ return Version::ANDROID_Q;
}
}