ValidationConfig
Stay organized with collections
Save and categorize content based on your preferences.
Abstract class that defines validation configs.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final long
DEFAULT_INFERENCE_TIMEOUT_MILLIS
The default test timeout in milli-seconds.
Constant Value: 5000
Public Methods
public long inferenceTimeoutMillis ()
Returns test timeout in milli-seconds.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eValidationConfig\u003c/code\u003e is an abstract class used to define configurations for validating TensorFlow Lite models.\u003c/p\u003e\n"],["\u003cp\u003eIt offers options for custom validation data or using embedded data within the model itself via its subclasses \u003ccode\u003eCustomValidationConfig\u003c/code\u003e and \u003ccode\u003eEmbeddedValidationConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einferenceTimeoutMillis\u003c/code\u003e method allows setting a timeout for inference during validation, defaulting to 5000 milliseconds.\u003c/p\u003e\n"]]],[],null,["# ValidationConfig\n\npublic abstract class **ValidationConfig** extends [Object](//developer.android.com/reference/java/lang/Object.html) \n\n|---|---|---|\n| Known Direct Subclasses [CustomValidationConfig](/android/reference/com/google/android/gms/tflite/acceleration/CustomValidationConfig), [EmbeddedValidationConfig](/android/reference/com/google/android/gms/tflite/acceleration/EmbeddedValidationConfig) |--------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------| | [CustomValidationConfig](/android/reference/com/google/android/gms/tflite/acceleration/CustomValidationConfig) | Provides custom validation data for benchmarking. | | [EmbeddedValidationConfig](/android/reference/com/google/android/gms/tflite/acceleration/EmbeddedValidationConfig) | Use this class when the validation data is already embedded in the model. | |||\n\nAbstract class that defines validation configs. \n\n### Constant Summary\n\n|------|-----------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|\n| long | [DEFAULT_INFERENCE_TIMEOUT_MILLIS](/android/reference/com/google/android/gms/tflite/acceleration/ValidationConfig#DEFAULT_INFERENCE_TIMEOUT_MILLIS) | The default test timeout in milli-seconds. |\n\n### Public Method Summary\n\n|------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| long | [inferenceTimeoutMillis](/android/reference/com/google/android/gms/tflite/acceleration/ValidationConfig#inferenceTimeoutMillis())() Returns test timeout in milli-seconds. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final long\n**DEFAULT_INFERENCE_TIMEOUT_MILLIS**\n\nThe default test timeout in milli-seconds. \nConstant Value: 5000\n\nPublic Methods\n--------------\n\n#### public long **inferenceTimeoutMillis** ()\n\nReturns test timeout in milli-seconds."]]