Skip to content

Instantly share code, notes, and snippets.

@talumbau
Created July 26, 2019 00:07
Code snippet showing how to create the TfLiteGpuDelegateOptions struct for configuring the GPU delegate.
//Prepare GPU delegate.
const TfLiteGpuDelegateOptions options = {
.metadata = NULL,
.compile_options = {
.precision_loss_allowed = 1, // FP16
.preferred_gl_object_type = TFLITE_GL_OBJECT_TYPE_FASTEST,
.dynamic_batch_enabled = 0, // Not fully functional yet
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment