Update documentation about the possible values of support status.
PiperOrigin-RevId: 326640261 Change-Id: I093a51be8f22459956cd926d839a83470178b6a6
This commit is contained in:
parent
faa1e98551
commit
8c3b7438db
@ -100,6 +100,10 @@
|
|||||||
{
|
{
|
||||||
"variable": "tflite.gpu.status",
|
"variable": "tflite.gpu.status",
|
||||||
"value": "SUPPORTED"
|
"value": "SUPPORTED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"variable": "tflite.gpu.opencl_status",
|
||||||
|
"value": "SUPPORTED"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -146,7 +150,7 @@
|
|||||||
"value": "j8y18lte",
|
"value": "j8y18lte",
|
||||||
"derived_properties": [
|
"derived_properties": [
|
||||||
{
|
{
|
||||||
"variable": "tflite.gpu.status",
|
"variable": "tflite.gpu.opencl_status",
|
||||||
"value": "SUPPORTED"
|
"value": "SUPPORTED"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -115,7 +115,7 @@ TEST_F(DeviceDbTest, StatusLookupWithDevice) {
|
|||||||
variables[kDeviceModel] = "sm_j810m";
|
variables[kDeviceModel] = "sm_j810m";
|
||||||
variables[kDeviceName] = "j8y18lte";
|
variables[kDeviceName] = "j8y18lte";
|
||||||
UpdateVariablesFromDatabase(&variables, *device_db_);
|
UpdateVariablesFromDatabase(&variables, *device_db_);
|
||||||
EXPECT_EQ(variables[gpu::kStatus], gpu::kStatusSupported);
|
EXPECT_EQ(variables[gpu::kOpenCLStatus], gpu::kStatusSupported);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(DeviceDbTest, StatusLookupBasedOnDerivedProperties) {
|
TEST_F(DeviceDbTest, StatusLookupBasedOnDerivedProperties) {
|
||||||
|
@ -71,10 +71,12 @@ namespace gpu {
|
|||||||
// GPU-delegate derived properties.
|
// GPU-delegate derived properties.
|
||||||
|
|
||||||
// Whether the GPU delegate works in general.
|
// Whether the GPU delegate works in general.
|
||||||
// Possible values are ("", "SUPPORTED", "UNSUPPORTED"). An empty value for
|
// ("UNSET", "UNKNOWN", "SUPPORTED", "UNSUPPORTED").
|
||||||
// this field means that the device is unsupported.
|
|
||||||
constexpr char kStatus[] = "tflite.gpu.status";
|
constexpr char kStatus[] = "tflite.gpu.status";
|
||||||
|
|
||||||
|
// Whether OpenCL should be allowed. Possible values are the SupportStatus enums
|
||||||
|
// ("UNSET", "UNKNOWN", "SUPPORTED", "UNSUPPORTED").
|
||||||
|
constexpr char kOpenCLStatus[] = "tflite.gpu.opencl_status";
|
||||||
constexpr char kStatusSupported[] = "SUPPORTED";
|
constexpr char kStatusSupported[] = "SUPPORTED";
|
||||||
constexpr char kStatusUnsupported[] = "UNSUPPORTED";
|
constexpr char kStatusUnsupported[] = "UNSUPPORTED";
|
||||||
} // namespace gpu
|
} // namespace gpu
|
||||||
|
Loading…
Reference in New Issue
Block a user