TFLITE_GPU_EXPERIMENTAL_FLAGS_ENABLE_SERIALIZATION constant

int const TFLITE_GPU_EXPERIMENTAL_FLAGS_ENABLE_SERIALIZATION

Enable serialization of GPU kernels & model data. Speeds up initialization at the cost of space on disk. Delegate performs serialization the first time it is applied with a new model or inference params. Later initializations are fast. ModifyGraphWithDelegate will fail if data cannot be serialized.

NOTE: User also needs to set serialization_dir & model_token in TfLiteGpuDelegateOptionsV2. Currently works only if CL backend is used.

Implementation

static const int TFLITE_GPU_EXPERIMENTAL_FLAGS_ENABLE_SERIALIZATION = 8;