From: Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics Date: Wed, 20 Jan 2021 07:39:32 +0000 (+0100) Subject: [ML] Added placeholders for further development X-Git-Tag: submit/tizen/20210128.113801~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0695849438bca542cc877a2b343d94c8d8bd7c88;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [ML] Added placeholders for further development [Verification] Code compiles without errors Change-Id: I2b69891c596e31ae87fb519b60aa3811e949c5d5 --- diff --git a/src/ml/js/ml_single.js b/src/ml/js/ml_single.js index 923af0a9..f9aa0d82 100755 --- a/src/ml/js/ml_single.js +++ b/src/ml/js/ml_single.js @@ -16,4 +16,20 @@ var MachineLearningSingle = function() {}; -// ML Single API +// MachineLearningSingle::openModel() + +// MachineLearningSingle::openModelAsync() + +// OpenModelSuccessCallback + +// SingleShot interface (input & output) + +// SingleShot::invoke() + +// SingleShot::getValue() + +// SingleShot::setValue() + +// SingleShot::setTimeout() + +// SingleShot::close() diff --git a/src/ml/ml.gyp b/src/ml/ml.gyp index c959f430..a8fb82f2 100644 --- a/src/ml/ml.gyp +++ b/src/ml/ml.gyp @@ -23,8 +23,12 @@ 'ml_pipeline_nodeinfo.h', 'ml_pipeline_switch.cc', 'ml_pipeline_switch.h', + #TODO pipeline Source + #TODO pipeline Valve 'ml_tensors_info_manager.cc', 'ml_tensors_info_manager.h', + #TODO single SingleShotManager + #TODO single SingleShot 'ml_utils.cc', 'ml_utils.h', ], diff --git a/src/ml/ml_instance.cc b/src/ml/ml_instance.cc index f1ce1f9e..1677d389 100644 --- a/src/ml/ml_instance.cc +++ b/src/ml/ml_instance.cc @@ -89,6 +89,16 @@ MlInstance::MlInstance() : pipeline_manager_{this} { REGISTER_METHOD(MLTensorsInfoDispose); // Single API begin + // MachineLearningSingle::openModel() + // MachineLearningSingle::openModelAsync() + // OpenModelSuccessCallback + // SingleShot input + // SingleShot output + // SingleShot::invoke() + // SingleShot::getValue() + // SingleShot::setValue() + // SingleShot::setTimeout() + // SingleShot::close() // Single API end @@ -524,6 +534,26 @@ void MlInstance::MLTensorsInfoDispose(const picojson::value& args, picojson::obj // Single API begin +// MachineLearningSingle::openModel() + +// MachineLearningSingle::openModelAsync() + +// OpenModelSuccessCallback + +// SingleShot input + +// SingleShot output + +// SingleShot::invoke() + +// SingleShot::getValue() + +// SingleShot::setValue() + +// SingleShot::setTimeout() + +// SingleShot::close() + // Single API end // Pipeline API begin diff --git a/src/ml/ml_instance.h b/src/ml/ml_instance.h index 08e6dc82..d511e8da 100644 --- a/src/ml/ml_instance.h +++ b/src/ml/ml_instance.h @@ -54,7 +54,16 @@ class MlInstance : public common::ParsedInstance { // Common ML API end // Single API begin - + // MachineLearningSingle::openModel() + // MachineLearningSingle::openModelAsync() + // OpenModelSuccessCallback + // SingleShot input + // SingleShot output + // SingleShot::invoke() + // SingleShot::getValue() + // SingleShot::setValue() + // SingleShot::setTimeout() + // SingleShot::close() // Single API end // Pipeline API begin