mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
etnaviv/ml: Disable caching on V8
The assumptions we make on V7 doesnt work as-is on V8. Revisit this later. Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31842>
This commit is contained in:
parent
41a9540ab9
commit
f186844545
1 changed files with 6 additions and 0 deletions
|
|
@ -795,6 +795,12 @@ create_nn_config(struct etna_ml_subgraph *subgraph, const struct etna_operation
|
|||
}
|
||||
}
|
||||
|
||||
/* Caching is not supported yet on V8 */
|
||||
if (nn_core_version == 8) {
|
||||
map->kernel_caching_mode = SRAM_CACHE_MODE_NO_CACHE;
|
||||
map->image_caching_mode = SRAM_CACHE_MODE_NO_CACHE;
|
||||
}
|
||||
|
||||
float conv_scale = (operation->input_scale * operation->weight_scale) / operation->output_scale;
|
||||
uint32_t scale_bits = fui(conv_scale);
|
||||
/* Taken from https://github.com/pytorch/QNNPACK/blob/master/src/qnnpack/requantization.h#L130 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue