mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
ethosu: Rename ethosu_lower_add to ethosu_lower_eltwise
The ethosu_lower_add() function can handle other element wise operations such as multiply, minimum, and maximum, so rename it in preparation to add those 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
fe97dab8b0
commit
1f579379c1
1 changed files with 4 additions and 4 deletions
|
|
@ -372,9 +372,9 @@ is_sub_shape(struct pipe_tensor *sub, struct pipe_tensor *super)
|
|||
}
|
||||
|
||||
static void
|
||||
ethosu_lower_add(struct ethosu_subgraph *subgraph,
|
||||
const struct pipe_ml_operation *poperation,
|
||||
struct ethosu_operation *operation)
|
||||
ethosu_lower_eltwise(struct ethosu_subgraph *subgraph,
|
||||
const struct pipe_ml_operation *poperation,
|
||||
struct ethosu_operation *operation)
|
||||
{
|
||||
operation->type = ETHOSU_OPERATION_TYPE_ELTWISE;
|
||||
int ifm_idx = 0;
|
||||
|
|
@ -506,7 +506,7 @@ ethosu_lower_graph(struct ethosu_subgraph *subgraph,
|
|||
}
|
||||
|
||||
case PIPE_ML_OPERATION_TYPE_ADD: {
|
||||
ethosu_lower_add(subgraph, &poperations[i], &operation);
|
||||
ethosu_lower_eltwise(subgraph, &poperations[i], &operation);
|
||||
util_dynarray_append(&subgraph->operations, operation);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue