[MachineLearning.Inference] Update SingleShot and its related classes (#1154)
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 12 Feb 2020 07:49:22 +0000 (16:49 +0900)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2020 07:49:22 +0000 (16:49 +0900)
commitd5e6f1c5fbf751ac0d6ea0062cb6d991be50b387
tree53c1a48b7c6e351bacfc4f3d8e2ed3d134ad3f8b
parentdc89481e042805a511ed5b67c2ae864bf45ef16a
[MachineLearning.Inference] Update SingleShot and its related classes (#1154)

SingleShot class
- Support various Neural Network framework such as TensorFlow,
  TensorFlowLite, Custom Filter or NNFW (default: Any)
- Support various HW resources such as CPU, GPU or NPU (default: Any)
- Load neural network model without Input / Output TensorsInfo
  (Dynamic mode or model file has input/output information)
- Newly adds `Input` property for Input tensors information
- Newly adds `Output` property for Output tensors information
- Newly adds SetTimeout() to set the maximum amount of time to wait for an
  output
- Remove `IOException` since it does not occur

TensorsData class
- Newly adds TensorsInfo property to fetch tensors information
- Newly adds static Allocate() for TensorsData Instance

TensorsInfo class
- Newly adds GetTensorSize() to get the byte size of tensor data
- Remove `ArgumentException` in SetTensorType(), GetTensorType() and
  GetDimension() since it does not occur

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
src/Tizen.MachineLearning.Inference/Interop/Interop.Nnstreamer.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/SingleShot.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsData.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs