[ml] Add customRequirement to tizen.ml.checkNNFWAvailability 66/263366/1
authorPawel Wasowski <p.wasowski2@samsung.com>
Tue, 31 Aug 2021 12:24:44 +0000 (14:24 +0200)
committerPawel Wasowski <p.wasowski2@samsung.com>
Tue, 31 Aug 2021 12:38:21 +0000 (14:38 +0200)
commite150cd4c1523e019f50673dc9a0e152f968f766c
tree3d3e956ce1c755c281173487f02d7755a783c344
parent207d76b71c2323007d748f3d73b935b2b6d18b79
[ml] Add customRequirement to tizen.ml.checkNNFWAvailability

ACR: TWDAPI-282

[Verification] Tested on TM1 in Chrome DevTools with the snippets below

tizen.ml.checkNNFWAvailability("TENSORFLOW_LITE", "CPU") // true

tizen.ml.checkNNFWAvailability("TENSORFLOW_LITE", "CPU",
                               'test custom requirement'); // true

The native implementation is not ready and returns the same value
whether the customRequirement is passed or not. That's why
tizen.ml.checkNNFWAvailability also returns "true" twice above

Change-Id: I971a5f49d4ea389ad953c28fc08da21bafb59ee2
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
src/ml/js/ml_manager.js
src/ml/ml_instance.cc
src/ml/ml_utils.cc
src/ml/ml_utils.h