diff options
Diffstat (limited to 'nn/common/operations/Select.cpp')
-rw-r--r-- | nn/common/operations/Select.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nn/common/operations/Select.cpp b/nn/common/operations/Select.cpp index 0b7728ab9..f037b4810 100644 --- a/nn/common/operations/Select.cpp +++ b/nn/common/operations/Select.cpp @@ -66,7 +66,7 @@ bool executeTyped(IOperationExecutionContext* context) { } // 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(kInputTensor1); @@ -78,7 +78,7 @@ bool validate(const IOperationValidationContext* context) { << "Unsupported input operand type for select op: " << inputType; NN_RET_CHECK(validateInputTypes(context, {OperandType::TENSOR_BOOL8, inputType, inputType})); NN_RET_CHECK(validateOutputTypes(context, {inputType})); - return validateVersion(context, Version::ANDROID_Q); + return Version::ANDROID_Q; } bool prepare(IOperationExecutionContext* context) { |