ohsewon / test

0 stars 0 forks source link

[ISSUE][CLOSED] [Filter/TF-Lite] Does 'TFLite core class' need to be applied singleton pattern? #285

Closed ohsewon closed 6 years ago

ohsewon commented 6 years ago

Issue by hello-ahn Monday Jul 16, 2018 at 05:17 GMT Originally opened as https://github.sec.samsung.net/STAR/nnstreamer/issues/285


Now the class is created and deleted whenever it is called from the upper layers if somebody needs to use .tflite model.

In my opinion, it could be useful applying 'singleton pattern' with below reasons.

  1. we can save loading time for .tflite model: now we load specific model whenever we call it.
  2. the class is guaranteed as the only one.

If there is any reason the class not to become a singleton pattern, please comments. Since it's low priority job, it will be implemented later.