Update documentation about the possible values of support status.

PiperOrigin-RevId: 326640261
Change-Id: I093a51be8f22459956cd926d839a83470178b6a6
This commit is contained in:
A. Unique TensorFlower 2020-08-14 05:54:49 -07:00 committed by TensorFlower Gardener
parent faa1e98551
commit 8c3b7438db
3 changed files with 10 additions and 4 deletions

View File

@ -100,6 +100,10 @@
{
"variable": "tflite.gpu.status",
"value": "SUPPORTED"
},
{
"variable": "tflite.gpu.opencl_status",
"value": "SUPPORTED"
}
]
}
@ -146,7 +150,7 @@
"value": "j8y18lte",
"derived_properties": [
{
"variable": "tflite.gpu.status",
"variable": "tflite.gpu.opencl_status",
"value": "SUPPORTED"
}
]

View File

@ -115,7 +115,7 @@ TEST_F(DeviceDbTest, StatusLookupWithDevice) {
variables[kDeviceModel] = "sm_j810m";
variables[kDeviceName] = "j8y18lte";
UpdateVariablesFromDatabase(&variables, *device_db_);
EXPECT_EQ(variables[gpu::kStatus], gpu::kStatusSupported);
EXPECT_EQ(variables[gpu::kOpenCLStatus], gpu::kStatusSupported);
}
TEST_F(DeviceDbTest, StatusLookupBasedOnDerivedProperties) {

View File

@ -71,10 +71,12 @@ namespace gpu {
// GPU-delegate derived properties.
// Whether the GPU delegate works in general.
// Possible values are ("", "SUPPORTED", "UNSUPPORTED"). An empty value for
// this field means that the device is unsupported.
// ("UNSET", "UNKNOWN", "SUPPORTED", "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