/third_party/backends/backend/genesys/ |
H A D | tables_model.cpp | 60 model.x_offset_ta = 0.0; in genesys_init_usb_device_tables() 61 model.y_offset_ta = 0.0; in genesys_init_usb_device_tables() 62 model.x_size_ta = 0.0; in genesys_init_usb_device_tables() 63 model.y_size_ta = 0.0; in genesys_init_usb_device_tables() 65 model.y_offset_sensor_to_ta = 0.0; in genesys_init_usb_device_tables() 66 model.y_offset_calib_white_ta = 0.0; in genesys_init_usb_device_tables() 67 model.y_size_calib_ta_mm = 0.0; in genesys_init_usb_device_tables() 72 model.y_offset_calib_dark_white_mm = 0.0; in genesys_init_usb_device_tables() 73 model.y_size_calib_dark_white_mm = 0.0; in genesys_init_usb_device_tables() 78 Genesys_Model model; in genesys_init_usb_device_tables() local 2901 const auto& model = device.model(); verify_usb_device_tables() local [all...] |
H A D | gl843.cpp | 69 if (dev->model->model_id == ModelId::HP_SCANJET_G4010 || in gl843_init_registers() 70 dev->model->model_id == ModelId::HP_SCANJET_G4050 || in gl843_init_registers() 71 dev->model->model_id == ModelId::HP_SCANJET_4850C) in gl843_init_registers() 75 if (dev->model->model_id == ModelId::CANON_8400F) { in gl843_init_registers() 80 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7200I || in gl843_init_registers() 81 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7300 || in gl843_init_registers() 82 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7500I) in gl843_init_registers() 89 if (dev->model->model_id == ModelId::HP_SCANJET_G4010 || in gl843_init_registers() 90 dev->model->model_id == ModelId::HP_SCANJET_G4050 || in gl843_init_registers() 91 dev->model in gl843_init_registers() [all...] |
H A D | low.cpp | 113 if (dev->model->asic_type==AsicType::GL847 || in sanei_genesys_set_buffer_address() 114 dev->model->asic_type==AsicType::GL845 || in sanei_genesys_set_buffer_address() 115 dev->model->asic_type==AsicType::GL846 || in sanei_genesys_set_buffer_address() 116 dev->model->asic_type==AsicType::GL124) in sanei_genesys_set_buffer_address() 141 switch (dev.model->asic_type) { in scanner_read_status() 232 switch (dev->model->asic_type) in sanei_genesys_read_valid_words() 259 if (dev->model->asic_type == AsicType::GL646) { in sanei_genesys_read_valid_words() 276 if (dev->model->asic_type == AsicType::GL124) { in sanei_genesys_read_scancnt() 285 if (dev->model->asic_type == AsicType::GL646) { in sanei_genesys_read_scancnt() 377 dev->model in read_unshuffled_image_from_scanner() [all...] |
H A D | scanner_interface_usb.cpp | 43 if (dev_->model->asic_type == AsicType::GL847 || in read_register() 44 dev_->model->asic_type == AsicType::GL845 || in read_register() 45 dev_->model->asic_type == AsicType::GL846 || in read_register() 46 dev_->model->asic_type == AsicType::GL124) in read_register() 88 if (dev_->model->asic_type == AsicType::GL847 || in write_register() 89 dev_->model->asic_type == AsicType::GL845 || in write_register() 90 dev_->model->asic_type == AsicType::GL846 || in write_register() 91 dev_->model->asic_type == AsicType::GL124) in write_register() 126 if (dev_->model->asic_type == AsicType::GL646 || in write_registers() 127 dev_->model in write_registers() [all...] |
H A D | gl846.cpp | 62 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7400 || in gl846_init_registers() 63 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_8200I) in gl846_init_registers() 69 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7400 || in gl846_init_registers() 70 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_8200I) in gl846_init_registers() 76 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7400 || in gl846_init_registers() 77 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_8200I) in gl846_init_registers() 82 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7400 || in gl846_init_registers() 83 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_8200I) in gl846_init_registers() 88 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7400 || in gl846_init_registers() 89 dev->model in gl846_init_registers() [all...] |
H A D | genesys.cpp | 162 if (dev->model->sensor_id == sensor.sensor_id) { in sanei_genesys_find_sensor_any() 175 if (dev->model->sensor_id == sensor.sensor_id && sensor.resolutions.matches(dpi) && in find_sensor_impl() 222 if (dev->model->sensor_id == sensor.sensor_id && sensor.method == scan_method) { in sanei_genesys_find_sensors_all() 235 if (dev->model->sensor_id == sensor.sensor_id && sensor.method == scan_method) { in sanei_genesys_find_sensors_all_for_write() 252 if (dev->model->gpio_id == gpo.id) { in sanei_genesys_init_structs() 261 if (dev->model->motor_id == motor.id) { in sanei_genesys_init_structs() 269 if (dev->model->adc_id == frontend.id) { in sanei_genesys_init_structs() 277 if (dev->model->asic_type == AsicType::GL845 || in sanei_genesys_init_structs() 278 dev->model->asic_type == AsicType::GL846 || in sanei_genesys_init_structs() 279 dev->model in sanei_genesys_init_structs() 4507 const Genesys_Model* model = s->dev->model; init_options() local [all...] |
/third_party/mindspore/interfaces/kits/c/ |
H A D | model.h | 28 * @file model.h 70 * @brief Create a model object. 77 * @brief Destroy the model object. 78 * @param model Model object handle address. 81 OH_AI_API void OH_AI_ModelDestroy(OH_AI_ModelHandle *model); 84 * @brief Build the model from model file buffer so that it can run on a device. 85 * @param model Model object handle. 86 * @param model_data Define the buffer read from a model file. 87 * @param data_size Define bytes number of model fil [all...] |
/third_party/backends/backend/ |
H A D | gt68xx_generic.c | 217 GT68xx_Model *model; in gt68xx_generic_setup_scan() local 238 model = dev->model; in gt68xx_generic_setup_scan() 245 base_xdpi = model->base_xdpi; in gt68xx_generic_setup_scan() 246 base_ydpi = model->base_ydpi; in gt68xx_generic_setup_scan() 248 if (xdpi > model->base_xdpi) in gt68xx_generic_setup_scan() 249 base_xdpi = model->optical_xdpi; in gt68xx_generic_setup_scan() 252 if ((dev->model->flags & GT68XX_FLAG_USE_OPTICAL_X) && xdpi <= 50) in gt68xx_generic_setup_scan() 253 base_xdpi = model->optical_xdpi; in gt68xx_generic_setup_scan() 255 if ((dev->model in gt68xx_generic_setup_scan() 651 GT68xx_Model *model = dev->model; gt68xx_generic_move_paper() local [all...] |
H A D | gt68xx_low.c | 169 dev->model = NULL; in gt68xx_device_new() 199 if (dev->model && dev->model->allocated) in gt68xx_device_free() 201 DBG (7, "gt68xx_device_free: freeing model data %p\n", in gt68xx_device_free() 202 (void *) dev->model); in gt68xx_device_free() 203 free (dev->model); in gt68xx_device_free() 218 for (entry = gt68xx_usb_device_list; entry->model; ++entry) in gt68xx_find_usb_device_entry() 248 dev->model = entry->model; in gt68xx_device_identify() 252 dev->model in gt68xx_device_identify() 321 gt68xx_device_set_model(GT68xx_Device * dev, GT68xx_Model * model) gt68xx_device_set_model() argument 338 gt68xx_device_get_model(SANE_String name, GT68xx_Model ** model) gt68xx_device_get_model() argument [all...] |
/third_party/spirv-tools/source/val/ |
H A D | validate_scopes.cpp | 115 spv::ExecutionModel model, in ValidateExecutionScope() 117 if (model == spv::ExecutionModel::Fragment || in ValidateExecutionScope() 118 model == spv::ExecutionModel::Vertex || in ValidateExecutionScope() 119 model == spv::ExecutionModel::Geometry || in ValidateExecutionScope() 120 model == spv::ExecutionModel::TessellationEvaluation || in ValidateExecutionScope() 121 model == spv::ExecutionModel::RayGenerationKHR || in ValidateExecutionScope() 122 model == spv::ExecutionModel::IntersectionKHR || in ValidateExecutionScope() 123 model == spv::ExecutionModel::AnyHitKHR || in ValidateExecutionScope() 124 model == spv::ExecutionModel::ClosestHitKHR || in ValidateExecutionScope() 125 model in ValidateExecutionScope() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_scopes.cpp | 114 SpvExecutionModel model, in ValidateExecutionScope() 116 if (model == SpvExecutionModelFragment || in ValidateExecutionScope() 117 model == SpvExecutionModelVertex || in ValidateExecutionScope() 118 model == SpvExecutionModelGeometry || in ValidateExecutionScope() 119 model == SpvExecutionModelTessellationEvaluation || in ValidateExecutionScope() 120 model == SpvExecutionModelRayGenerationKHR || in ValidateExecutionScope() 121 model == SpvExecutionModelIntersectionKHR || in ValidateExecutionScope() 122 model == SpvExecutionModelAnyHitKHR || in ValidateExecutionScope() 123 model == SpvExecutionModelClosestHitKHR || in ValidateExecutionScope() 124 model in ValidateExecutionScope() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_scopes.cpp | 114 SpvExecutionModel model, in ValidateExecutionScope() 116 if (model == SpvExecutionModelFragment || in ValidateExecutionScope() 117 model == SpvExecutionModelVertex || in ValidateExecutionScope() 118 model == SpvExecutionModelGeometry || in ValidateExecutionScope() 119 model == SpvExecutionModelTessellationEvaluation || in ValidateExecutionScope() 120 model == SpvExecutionModelRayGenerationKHR || in ValidateExecutionScope() 121 model == SpvExecutionModelIntersectionKHR || in ValidateExecutionScope() 122 model == SpvExecutionModelAnyHitKHR || in ValidateExecutionScope() 123 model == SpvExecutionModelClosestHitKHR || in ValidateExecutionScope() 124 model in ValidateExecutionScope() [all...] |
/third_party/mindspore/test/fuzztest/mindspore_fuzzer/ |
H A D | context_c_fuzzer.cpp | 18 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in MSContextFuzzTest_ThreadNum() local 19 if (model == nullptr) { in MSContextFuzzTest_ThreadNum() 20 printf("create model failed.\n"); in MSContextFuzzTest_ThreadNum() 23 ModelPredict(model, context, "ml_face_isface", {}, false, true, false); in MSContextFuzzTest_ThreadNum() 39 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in MSContextFuzzTest_ThreadAffinityMode() local 40 if (model == nullptr) { in MSContextFuzzTest_ThreadAffinityMode() 41 printf("create model failed.\n"); in MSContextFuzzTest_ThreadAffinityMode() 44 ModelPredict(model, context, "ml_face_isface", {}, false, true, false); in MSContextFuzzTest_ThreadAffinityMode() 78 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in MSContextFuzzTest_Provider() local 79 if (model in MSContextFuzzTest_Provider() 101 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadNum_Add1() local 121 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadAffinityMode_Add1() local 158 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_Provider_Add1() local 180 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadNum_Add2() local 200 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadAffinityMode_Add2() local 237 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_Provider_Add2() local 259 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadNum_Add3() local 279 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadNum_Add4() local 299 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadAffinityMode_Add3() local 319 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_ThreadAffinityMode_Add4() local 356 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_Provider_Add3() local 395 OH_AI_ModelHandle model = OH_AI_ModelCreate(); MSContextFuzzTest_Provider_Add4() local [all...] |
H A D | mindspore_fuzzer.cpp | 47 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in MSPreparedModelFuzzTest() local 48 if (model == nullptr) { in MSPreparedModelFuzzTest() 49 printf("create model failed.\n"); in MSPreparedModelFuzzTest() 54 OH_AI_ModelDestroy(&model); in MSPreparedModelFuzzTest() 224 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in MSModelFuzzTest_Null() local 225 if (model == nullptr) { in MSModelFuzzTest_Null() 226 printf("create model failed.\n"); in MSModelFuzzTest_Null() 229 OH_AI_ModelDestroy(&model); in MSModelFuzzTest_Null() 230 OH_AI_ModelSetWorkspace(model, nullptr, 0); in MSModelFuzzTest_Null() 231 OH_AI_ModelCalcWorkspaceSize(model); in MSModelFuzzTest_Null() [all...] |
/third_party/mindspore/test/unittest/ |
H A D | mindspore_unit_test.cpp | 146 printf("==========Create model==========\n"); in HWTEST() 147 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in HWTEST() local 148 ASSERT_NE(model, nullptr); in HWTEST() 149 ModelPredict(model, context, "ml_face_isface", {}, false, true, false); in HWTEST() 171 printf("==========Create model==========\n"); in HWTEST() 172 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in HWTEST() local 173 ASSERT_NE(model, nullptr); in HWTEST() 174 ModelPredict(model, context, "ml_face_isface", {}, false, true, false); in HWTEST() 194 printf("==========Create model==========\n"); in HWTEST() 195 OH_AI_ModelHandle model in HWTEST() local 218 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 273 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 290 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 334 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 357 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 410 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 517 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 549 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 592 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 646 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 717 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 766 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local 803 OH_AI_ModelHandle model = OH_AI_ModelCreate(); HWTEST() local [all...] |
/third_party/backends/tools/ |
H A D | sane-desc.c | 171 struct model_entry *model; member 868 model_entry *current_model = current_mfg->model; in read_files() 1045 ("overwriting status of model `%s' (backend `%s')\n", in read_files() 1051 ("setting status of model `%s' to `minimal'\n", in read_files() 1058 ("setting status of model `%s' to `basic'\n", in read_files() 1065 ("setting status of model `%s' to `good'\n", in read_files() 1072 ("setting status of model `%s' to `complete'\n", in read_files() 1079 ("setting status of model `%s' to `untested'\n", in read_files() 1086 ("setting status of model `%s' to `unsupported'\n", in read_files() 1093 ("unknown status of model ` in read_files() 1318 model_entry *model = 0; read_files() local 1588 create_model_record(model_entry * model) create_model_record() argument 1629 update_model_record_list(model_record_entry * first_model_record, model_entry * model, backend_entry * be) update_model_record_list() argument 1704 model_entry *model = mfg->model; update_mfg_record_list() local 1919 model_entry *model = mfg->model; ascii_print_backends() local 2158 model_entry *model = mfg->model; xml_print_backends() local 2281 model_entry *model; calculate_statistics_per_type() local 2487 model_entry *model; html_backends_split_table() local 3072 create_usbid(char *manufacturer, char *model, char *usb_vendor_id, char *usb_product_id) create_usbid() argument 3090 create_scsiid(char *manufacturer, char *model, char *scsi_vendor_id, char *scsi_product_id, SANE_Bool is_processor) create_scsiid() argument 3109 add_usbid(usbid_type *first_usbid, char *manufacturer, char *model, char *usb_vendor_id, char *usb_product_id) add_usbid() argument 3162 add_scsiid(scsiid_type *first_scsiid, char *manufacturer, char *model, char *scsi_vendor_id, char *scsi_product_id, SANE_Bool is_processor) add_scsiid() argument 3239 model_entry *model; create_usbids_table() local 3290 model_entry *model; create_scsiids_table() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | jsxInferenceProducesLiteralAsExpected.js | 10 model: T; 14 const model = new TestObject(); 16 const el1 = <Test model={model} foo="c" />; 17 const el2 = <Test<TestObject> model={model} foo="c" />;
32 var model = new TestObject();
33 var el1 = React.createElement(Test, { model: model, foo: "c" });
34 var el2 = React.createElement(Test, { model [all...] |
/third_party/ffmpeg/libavfilter/dnn/ |
H A D | dnn_backend_native.c | 53 NativeModel *native_model = task->model; in extract_lltask_from_task() 73 static int get_input_native(void *model, DNNData *input, const char *input_name) in get_input_native() argument 75 NativeModel *native_model = model; in get_input_native() 82 av_log(ctx, AV_LOG_ERROR, "Found \"%s\" in model, but it is not input node\n", input_name); in get_input_native() 95 av_log(ctx, AV_LOG_ERROR, "Could not find \"%s\" in model\n", input_name); in get_input_native() 99 static int get_output_native(void *model, const char *input_name, int input_width, int input_height, in get_output_native() argument 103 NativeModel *native_model = model; in get_output_native() 135 // Loads model and its parameters that are stored in a binary file with following structure: 142 DNNModel *model = NULL; in ff_dnn_load_model_native() local 157 model in ff_dnn_load_model_native() 435 ff_dnn_execute_model_native(const DNNModel *model, DNNExecBaseParams *exec_params) ff_dnn_execute_model_native() argument 474 ff_dnn_flush_native(const DNNModel *model) ff_dnn_flush_native() argument 488 ff_dnn_get_result_native(const DNNModel *model, AVFrame **in, AVFrame **out) ff_dnn_get_result_native() argument 515 ff_dnn_free_model_native(DNNModel **model) ff_dnn_free_model_native() argument [all...] |
H A D | dnn_backend_openvino.c | 54 DNNModel *model; member 78 { "device", "device to run model", OFFSET(options.device_type), AV_OPT_TYPE_STRING, { .str = "CPU" }, 0, 0, FLAGS }, 157 // all models in openvino open model zoo use BGR as input, in fill_model_input_ov() 169 switch (ov_model->model->func_type) { in fill_model_input_ov() 172 if (ov_model->model->frame_pre_proc != NULL) { in fill_model_input_ov() 173 ov_model->model->frame_pre_proc(task->in_frame, &input, ov_model->model->filter_ctx); in fill_model_input_ov() 205 OVModel *ov_model = task->model; in infer_completion_callback() 218 av_log(ctx, AV_LOG_ERROR, "Failed to get model output data\n"); in infer_completion_callback() 257 switch (ov_model->model in infer_completion_callback() 503 get_input_ov(void *model, DNNData *input, const char *input_name) get_input_ov() argument 656 get_output_ov(void *model, const char *input_name, int input_width, int input_height, const char *output_name, int *output_width, int *output_height) get_output_ov() argument 728 DNNModel *model = NULL; ff_dnn_load_model_ov() local 783 ff_dnn_execute_model_ov(const DNNModel *model, DNNExecBaseParams *exec_params) ff_dnn_execute_model_ov() argument 866 ff_dnn_get_result_ov(const DNNModel *model, AVFrame **in, AVFrame **out) ff_dnn_get_result_ov() argument 872 ff_dnn_flush_ov(const DNNModel *model) ff_dnn_flush_ov() argument 910 ff_dnn_free_model_ov(DNNModel **model) ff_dnn_free_model_ov() argument [all...] |
H A D | dnn_backend_tf.c | 56 DNNModel *model; member 151 * Start synchronous inference for the TensorFlow model. 164 TFModel *tf_model = task->model; in tf_start_inference() 208 TFModel *tf_model = task->model; in extract_lltask_from_task() 281 static int get_input_tf(void *model, DNNData *input, const char *input_name) in get_input_tf() argument 283 TFModel *tf_model = model; in get_input_tf() 291 av_log(ctx, AV_LOG_ERROR, "Could not find \"%s\" in model\n", input_name); in get_input_tf() 317 static int get_output_tf(void *model, const char *input_name, int input_width, int input_height, in get_output_tf() argument 321 TFModel *tf_model = model; in get_output_tf() 430 av_log(ctx, AV_LOG_ERROR, "Failed to read model \" in load_tf_model() 761 DNNModel *model = NULL; load_native_model() local 854 DNNModel *model = NULL; ff_dnn_load_model_tf() local 1144 ff_dnn_execute_model_tf(const DNNModel *model, DNNExecBaseParams *exec_params) ff_dnn_execute_model_tf() argument 1189 ff_dnn_get_result_tf(const DNNModel *model, AVFrame **in, AVFrame **out) ff_dnn_get_result_tf() argument 1195 ff_dnn_flush_tf(const DNNModel *model) ff_dnn_flush_tf() argument 1225 ff_dnn_free_model_tf(DNNModel **model) ff_dnn_free_model_tf() argument [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | dnn_filter_common.c | 57 av_log(filter_ctx, AV_LOG_ERROR, "model file for network is not specified\n"); in ff_dnn_init() 61 av_log(filter_ctx, AV_LOG_ERROR, "input name of the model network is not specified\n"); in ff_dnn_init() 67 av_log(filter_ctx, AV_LOG_ERROR, "could not parse model output names\n"); in ff_dnn_init() 81 ctx->model = (ctx->dnn_module->load_model)(ctx->model_filename, func_type, ctx->backend_options, filter_ctx); in ff_dnn_init() 82 if (!ctx->model) { in ff_dnn_init() 83 av_log(filter_ctx, AV_LOG_ERROR, "could not load DNN model\n"); in ff_dnn_init() 92 ctx->model->frame_pre_proc = pre_proc; in ff_dnn_set_frame_proc() 93 ctx->model->frame_post_proc = post_proc; in ff_dnn_set_frame_proc() 99 ctx->model->detect_post_proc = post_proc; in ff_dnn_set_detect_post_proc() 105 ctx->model in ff_dnn_set_classify_post_proc() [all...] |
H A D | vf_nnedi.c | 297 static int filter_offset(int nn, const PredictorCoefficients *const model) in filter_offset() argument 299 return nn * model->nsize; in filter_offset() 303 const PredictorCoefficients *const model) in softmax_q1_filter() 305 return model->softmax_q1 + filter_offset(nn, model); in softmax_q1_filter() 309 const PredictorCoefficients *const model) in elliott_q1_filter() 311 return model->elliott_q1 + filter_offset(nn, model); in elliott_q1_filter() 315 const PredictorCoefficients *const model) in softmax_q2_filter() 317 return model in softmax_q2_filter() 302 softmax_q1_filter(int nn, const PredictorCoefficients *const model) softmax_q1_filter() argument 308 elliott_q1_filter(int nn, const PredictorCoefficients *const model) elliott_q1_filter() argument 314 softmax_q2_filter(int nn, const PredictorCoefficients *const model) softmax_q2_filter() argument 320 elliott_q2_filter(int nn, const PredictorCoefficients *const model) elliott_q2_filter() argument 326 gather_input(const float *src, ptrdiff_t src_stride, float *buf, float mstd[4], const PredictorCoefficients *const model) gather_input() argument 389 predictor(AVFilterContext *ctx, const void *src, ptrdiff_t src_stride, void *dst, const uint8_t *prescreen, int N, const PredictorCoefficients *const model, int use_q2) predictor() argument 826 PredictorCoefficients *model = &s->coeffs[m][i][j]; read_weights() local 891 subtract_mean_predictor(PredictorCoefficients *model) subtract_mean_predictor() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | vp5.c | 91 VP56Model *model = s->modelp; in vp5_parse_vector_adjustment() local 96 if (vp56_rac_get_prob_branchy(c, model->vector_dct[comp])) { in vp5_parse_vector_adjustment() 97 int sign = vp56_rac_get_prob(c, model->vector_sig[comp]); in vp5_parse_vector_adjustment() 98 di = vp56_rac_get_prob(c, model->vector_pdi[comp][0]); in vp5_parse_vector_adjustment() 99 di |= vp56_rac_get_prob(c, model->vector_pdi[comp][1]) << 1; in vp5_parse_vector_adjustment() 101 model->vector_pdv[comp]); in vp5_parse_vector_adjustment() 115 VP56Model *model = s->modelp; in vp5_parse_vector_models() local 120 model->vector_dct[comp] = vp56_rac_gets_nn(c, 7); in vp5_parse_vector_models() 122 model->vector_sig[comp] = vp56_rac_gets_nn(c, 7); in vp5_parse_vector_models() 124 model in vp5_parse_vector_models() 138 VP56Model *model = s->modelp; vp5_parse_coeff_models() local 185 VP56Model *model = s->modelp; vp5_parse_coeff() local 268 VP56Model *model = s->modelp; vp5_default_models_init() local [all...] |
H A D | vp6.c | 216 VP56Model *model = s->modelp; in vp6_default_models_init() local 218 model->vector_dct[0] = 0xA2; in vp6_default_models_init() 219 model->vector_dct[1] = 0xA4; in vp6_default_models_init() 220 model->vector_sig[0] = 0x80; in vp6_default_models_init() 221 model->vector_sig[1] = 0x80; in vp6_default_models_init() 223 memcpy(model->mb_types_stats, ff_vp56_def_mb_types_stats, sizeof(model->mb_types_stats)); in vp6_default_models_init() 224 memcpy(model->vector_fdv, vp6_def_fdv_vector_model, sizeof(model->vector_fdv)); in vp6_default_models_init() 225 memcpy(model in vp6_default_models_init() 235 VP56Model *model = s->modelp; vp6_parse_vector_models() local 288 VP56Model *model = s->modelp; vp6_parse_coeff_models() local 357 VP56Model *model = s->modelp; vp6_parse_vector_adjustment() local 410 VP56Model *model = s->modelp; vp6_parse_coeff_huffman() local 472 VP56Model *model = s->modelp; vp6_parse_coeff() local [all...] |
/third_party/mindspore/test/utils/ |
H A D | model_utils.cpp | 160 // model build and predict 161 void ModelPredict(OH_AI_ModelHandle model, OH_AI_ContextHandle context, std::string modelName, in ModelPredict() argument 167 printf("==========Build model by graphBuf==========\n"); in ModelPredict() 172 ret = OH_AI_ModelBuild(model, graphBuf, size, OH_AI_MODELTYPE_MINDIR, context); in ModelPredict() 175 printf("==========Build model==========\n"); in ModelPredict() 176 ret = OH_AI_ModelBuildFromFile(model, graphPath, OH_AI_MODELTYPE_MINDIR, context); in ModelPredict() 178 printf("==========build model return code:%d\n", ret); in ModelPredict() 181 OH_AI_TensorHandleArray inputs = OH_AI_ModelGetInputs(model); in ModelPredict() 185 OH_AI_Status resize_ret = OH_AI_ModelResize(model, inputs, &shapeInfos, inputs.handle_num); in ModelPredict() 197 predictRet = OH_AI_ModelPredict(model, input in ModelPredict() 212 ModelPredict_ModelBuild(OH_AI_ModelHandle model, OH_AI_ContextHandle context, std::string modelName, bool buildByGraph) ModelPredict_ModelBuild() argument 239 ModelTrain(OH_AI_ModelHandle model, OH_AI_ContextHandle context, std::string modelName, OH_AI_ShapeInfo shapeInfos, bool buildByGraph, bool isTranspose, bool isCallback) ModelTrain() argument [all...] |