* @note the model of _model_path will be loaded simultaneously
* @return Nothing
*/
-TFLiteCore::TFLiteCore (char *_model_path)
+TFLiteCore::TFLiteCore (const char *_model_path)
{
model_path = _model_path;
input_idx_list_len = 0;
* @return TFLiteCore class
*/
extern void *
-tflite_core_new (char *_model_path)
+tflite_core_new (const char *_model_path)
{
return new TFLiteCore (_model_path);
}
* @param tflite : the class object
* @return model path
*/
-extern char *
+extern const char *
tflite_core_getModelPath (void *tflite)
{
TFLiteCore *c = (TFLiteCore *) tflite;
/**
* member functions.
*/
- TFLiteCore (char *_model_path);
+ TFLiteCore (const char *_model_path);
~TFLiteCore ();
/**
* @brief get the model path.
* @return saved model path.
*/
- char *getModelPath ()
+ const char *getModelPath ()
{
return model_path;
}
/**
* member variables.
*/
- char *model_path;
+ const char *model_path;
int tensor_size;
int node_size;
int input_size;
{
#endif
- extern void *tflite_core_new (char *_model_path);
+ extern void *tflite_core_new (const char *_model_path);
extern void tflite_core_delete (void *tflite);
- extern char *tflite_core_getModelPath (void *tflite);
+ extern const char *tflite_core_getModelPath (void *tflite);
extern int tflite_core_getInputDim (void *tflite, int idx, int **dim,
int *len);
extern int tflite_core_getOutputDim (void *tflite, int idx, int **dim,