2 * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 var MachineLearningManager = function () {
18 Object.defineProperties(this, {
22 value: new MachineLearningSingle()
27 value: new MachineLearningPipeline()
32 value: new MachineLearningTrainer()
40 CUSTOM_FILTER: 'CUSTOM_FILTER',
44 OPEN_VINO: 'OPEN_VINO',
47 TENSORFLOW: 'TENSORFLOW',
48 TENSORFLOW_LITE: 'TENSORFLOW_LITE',
53 TRIX_ENGINE: 'TRIX_ENGINE'
64 NPU_EDGE_TPU: 'NPU_EDGE_TPU',
65 NPU_MOVIDIUS: 'NPU_MOVIDIUS',
67 NPU_VIVANTE: 'NPU_VIVANTE',
71 MachineLearningManager.prototype.checkNNFWAvailability = function () {
72 var args = validator_.validateArgs(arguments, [
76 values: Object.values(NNFWType),
82 values: Object.values(HWType),
86 name: 'customRequirement',
94 customRequirement: args.customRequirement || null
97 var result = native_.callSync('MLCheckNNFWAvailability', callArgs);
99 if (native_.isFailure(result)) {
102 return native_.getResultObject(result);
105 exports = new MachineLearningManager();
106 exports.TensorsInfo = TensorsInfo;