Created
July 26, 2019 00:07
Code snippet showing how to create the TfLiteGpuDelegateOptions struct for configuring the GPU delegate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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