Lines Matching full:model
13 * Gaussian Mixture Model and Neural Network Accelerator (GNA)
82 sys_cache_data_invd_range(pending_req.model->output,
84 /* copy output from the model buffer to application buffer */
85 memcpy(pending_req.output, pending_req.model->output,
133 LOG_ERR("model at %p of size %u exceeds L2 SRAM space", in intel_gna_setup_page_table()
277 struct gna_model_info *model, in intel_gna_register_model() argument
293 if ((model_handle == NULL) || (model == NULL)) { in intel_gna_register_model()
294 LOG_ERR("model and/or model_handle is NULL"); in intel_gna_register_model()
298 if ((model->header == NULL) || (model->rw_region == NULL)) { in intel_gna_register_model()
299 LOG_ERR("model header / rw_region is/are NULL"); in intel_gna_register_model()
304 if (((uint32_t)model->rw_region & BIT_MASK(6)) || in intel_gna_register_model()
305 ((uint32_t)model->ro_region & BIT_MASK(6))) { in intel_gna_register_model()
312 LOG_ERR("No memory to register model"); in intel_gna_register_model()
316 LOG_INF("model header: %p rw: %p ro: %p", model->header, in intel_gna_register_model()
317 model->rw_region, model->ro_region); in intel_gna_register_model()
319 header = model->header; in intel_gna_register_model()
326 if (model->rw_region && header->rw_region_size) { in intel_gna_register_model()
335 intel_gna_setup_page_table(model->rw_region, rw_size, in intel_gna_register_model()
337 sys_cache_data_flush_range(model->rw_region, rw_size); in intel_gna_register_model()
340 if (model->ro_region == NULL) { in intel_gna_register_model()
341 ro_region = (void *)((uint32_t)model->rw_region + rw_size); in intel_gna_register_model()
343 ro_region = model->ro_region; in intel_gna_register_model()
349 model->rw_region, rw_size, ro_region, ro_size); in intel_gna_register_model()
358 /* copy the model pointers */ in intel_gna_register_model()
359 gna_model->model = *model; in intel_gna_register_model()
361 gna_model->input = (void *)((uint32_t)model->rw_region + in intel_gna_register_model()
362 *(uint32_t *)((uint32_t)model->rw_region + in intel_gna_register_model()
364 gna_model->output = (void *)((uint32_t)model->rw_region + in intel_gna_register_model()
365 *(uint32_t *)((uint32_t)model->rw_region + in intel_gna_register_model()
369 LOG_INF("model->rw_region: %p", model->rw_region); in intel_gna_register_model()
371 *(uint32_t *)((uint32_t)model->rw_region + header->input_ptr_offset)); in intel_gna_register_model()
374 *(uint32_t *)((uint32_t)model->rw_region + in intel_gna_register_model()
377 LOG_DBG("returning model handle: %p", gna_model); in intel_gna_register_model()
409 struct gna_model_info *model; in intel_gna_infer() local
427 LOG_ERR("Model is not registered. Handle %p", handle); in intel_gna_infer()
441 model = &handle->model; in intel_gna_infer()
442 header = model->header; in intel_gna_infer()
445 pending_req.model = handle; in intel_gna_infer()