mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
teflon: Add multiply operation
Add the plumbing for multiply operations. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39975>
This commit is contained in:
parent
d55a574898
commit
024c70fbb3
2 changed files with 7 additions and 0 deletions
|
|
@ -182,6 +182,9 @@ fill_operation(struct teflon_delegate *delegate, TfLiteContext *tf_context, TfLi
|
|||
}
|
||||
break;
|
||||
}
|
||||
case kTfLiteBuiltinMul:
|
||||
operation->type = PIPE_ML_OPERATION_TYPE_MUL;
|
||||
break;
|
||||
case kTfLiteBuiltinAdd: {
|
||||
TfLiteAddParams *params = (TfLiteAddParams *)node->builtin_data;
|
||||
|
||||
|
|
@ -489,6 +492,9 @@ dump_graph(struct pipe_tensor *tensors, unsigned tensor_count, struct pipe_ml_op
|
|||
case PIPE_ML_OPERATION_TYPE_RESIZE:
|
||||
teflon_debug("%-15s ", "RESIZE");
|
||||
break;
|
||||
case PIPE_ML_OPERATION_TYPE_MUL:
|
||||
teflon_debug("%-15s ", "MUL");
|
||||
break;
|
||||
}
|
||||
|
||||
char *input_buf = ralloc_strdup(NULL, "");
|
||||
|
|
|
|||
|
|
@ -1065,6 +1065,7 @@ enum pipe_ml_operation_type {
|
|||
PIPE_ML_OPERATION_TYPE_TRANSPOSE,
|
||||
PIPE_ML_OPERATION_TYPE_STRIDED_SLICE,
|
||||
PIPE_ML_OPERATION_TYPE_RESIZE,
|
||||
PIPE_ML_OPERATION_TYPE_MUL,
|
||||
};
|
||||
|
||||
enum pipe_ml_pooling_type {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue