dispose method
void
dispose()
Releases all TensorFlow Lite resources held by this model.
Call this when you're done using the face embedding model to free up memory. After calling dispose, this instance cannot be used for inference.
Note: Most users should call FaceDetector.dispose instead, which automatically disposes all internal models (detection, mesh, iris, and embedding).
Implementation
void dispose() {
if (_disposed) return;
_compiledModel?.close();
_doDispose();
}