[ML][Single] Implemented setTimeout and close
[ACR] https://code.sec.samsung.net/jira/browse/TWDAPI-273
[Verification] Code compiles. Verified in chrome console:
var m = tizen.ml.single.openModel("/opt/usr/home/owner/media/Documents/mobilenet_v1_1.0_224_quant.tflite") // success
// timeout check
// check if invoke works 'normally'
var ti = new tizen.ml.TensorsInfo();
ti.addTensorInfo("tensor", "UINT8", [3, 224, 224])
var td = ti.getTensorsData();
var tdout = m.invoke(td) // success
// check if timeout will change behaviour of invoke, while short timeout is set
m.setTimeout(5) // success
var tdout = m.invoke(td) // TimeoutError
// check empty arguments
m.setTimeout() // InvalidValuesError
// close check
m.close() // success
// Abort error: "SingleShot object was closed and using it is no longer possible."
// for following calls:
m.close()
m.input
m.output
m.invoke()
m.getValue()
m.setValue()
m.setTimeout()
Change-Id: I3ff7b899fc1527f62aea24387cadf4d0f0db3f05