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