TFL iOS camera example fix for GPU delegate support: rolled back delegate function names

PiperOrigin-RevId: 268943748
This commit is contained in:
A. Unique TensorFlower 2019-09-13 11:19:53 -07:00 committed by TensorFlower Gardener
parent 16f13b1137
commit 4112ac2be0

View File

@ -386,7 +386,7 @@ void ProcessInputWithQuantizedModel(
- (void)dealloc {
#if TFLITE_USE_GPU_DELEGATE
if (delegate) {
TFLGpuDelegateDelete(delegate);
DeleteGpuDelegate(delegate);
}
#endif
[self teardownAVCapture];
@ -415,10 +415,10 @@ void ProcessInputWithQuantizedModel(
tflite::InterpreterBuilder(*model, resolver)(&interpreter);
#if TFLITE_USE_GPU_DELEGATE
TFLGpuDelegateOptions options;
GpuDelegateOptions options;
options.allow_precision_loss = true;
options.wait_type = TFLGpuDelegateWaitType::TFLGpuDelegateWaitTypeActive;
delegate = TFLGpuDelegateCreate(&options);
options.wait_type = GpuDelegateOptions::WaitType::kActive;
delegate = NewGpuDelegate(&options);
interpreter->ModifyGraphWithDelegate(delegate);
#endif