aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/prototype/src/Prototype.h
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2023-07-25 17:00:33 +0100
committerJakub Sujak <jakub.sujak@arm.com>2023-08-30 13:48:07 +0000
commit91cb7336400acc857e20086a23692f99fe11be9c (patch)
tree188c96c61a197ab3a21106d195be4a6a4f63ca6c /compute_kernel_writer/prototype/src/Prototype.h
parentd0d8f2e61039826685aa076347eacce526e8c74b (diff)
downloadComputeLibrary-91cb7336400acc857e20086a23692f99fe11be9c.tar.gz
Port Resize operator to CKW
Use Compute Kernel Writer (CKW) to generate code for Resize operator in the Dynamic Fusion interface. Supports Nearest Neighbor and Bilinear interpolation methods. Resolves: COMPMID-6265 Change-Id: Ib0a5158bd4208123c84f6a1dc54f29d82fd55dcd Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Signed-off-by: Jakub Sujak <jakub.sujak@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10174 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/prototype/src/Prototype.h')
-rw-r--r--compute_kernel_writer/prototype/src/Prototype.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compute_kernel_writer/prototype/src/Prototype.h b/compute_kernel_writer/prototype/src/Prototype.h
index 2b519471ac..88d6e898e4 100644
--- a/compute_kernel_writer/prototype/src/Prototype.h
+++ b/compute_kernel_writer/prototype/src/Prototype.h
@@ -3694,6 +3694,9 @@ public:
case UnaryFunction::Round:
_data->code += "round(";
break;
+ case UnaryFunction::Floor:
+ _data->code += "floor(";
+ break;
default:
CKW_ASSERT_MSG(false, "Unexpected UnaryFunction used.");
}
@@ -3772,6 +3775,9 @@ public:
case TernaryFunction::Select:
_data->code += "select(";
break;
+ case TernaryFunction::Clamp:
+ _data->code += "clamp(";
+ break;
default:
CKW_ASSERT_MSG(false, "Unexpected TernaryFunction used.");
}