TFLGpuDelegateSetCommandEncoder replaced by TFLGpuDelegateSetCommandBuffer.
PiperOrigin-RevId: 346436548 Change-Id: I8514531bfcafc21f44c9f0c834cbb57dd73429a3
This commit is contained in:
parent
20d69d0834
commit
45d19c8f45
@ -711,14 +711,6 @@ bool TFLGpuDelegateBindMetalBufferToTensor(TfLiteDelegate* delegate, int tensor_
|
||||
|
||||
// Note: This function is not exposed in `metal_delegate.h`, but it's exposed in
|
||||
// `metal_delegate_internal.h`.
|
||||
bool TFLGpuDelegateSetCommandEncoder(
|
||||
TfLiteDelegate* delegate, id<MTLComputeCommandEncoder> encoder) {
|
||||
auto* metal_delegate = ::tflite::gpu::metal::GetMetalDelegate(delegate);
|
||||
if (!metal_delegate) return false;
|
||||
metal_delegate->SetCommandEncoder(encoder);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TFLGpuDelegateSetCommandBuffer(TfLiteDelegate* delegate,
|
||||
id<MTLCommandBuffer> command_buffer) {
|
||||
auto* metal_delegate = ::tflite::gpu::metal::GetMetalDelegate(delegate);
|
||||
|
@ -33,11 +33,6 @@ bool TFLGpuDelegateBindMetalBufferToTensor(TfLiteDelegate* delegate,
|
||||
int tensor_index,
|
||||
id<MTLBuffer> metal_buffer);
|
||||
|
||||
// Binds user-defined MTLComputeCommandEncoder. The delegate puts all GPU tasks
|
||||
// into this encoder instead of the internal encoder.
|
||||
bool TFLGpuDelegateSetCommandEncoder(TfLiteDelegate* delegate,
|
||||
id<MTLComputeCommandEncoder> encoder);
|
||||
|
||||
// Binds user-defined MTLCommandBuffer. The delegate puts all GPU tasks
|
||||
// into this buffer instead of the internal command buffer.
|
||||
bool TFLGpuDelegateSetCommandBuffer(TfLiteDelegate* delegate,
|
||||
|
Loading…
Reference in New Issue
Block a user