TFL iOS camera example fix for GPU delegate support: rolled back delegate function names
PiperOrigin-RevId: 268943748
This commit is contained in:
parent
16f13b1137
commit
4112ac2be0
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user