Update documentation about the possible values of support status.

PiperOrigin-RevId: 326997320
Change-Id: I4d29b268c40dbe16b1704bf43745981631a35dfc
This commit is contained in:
A. Unique TensorFlower 2020-08-17 04:33:59 -07:00 committed by TensorFlower Gardener
parent 916b61ff72
commit 7f1653325a
3 changed files with 4 additions and 10 deletions

View File

@ -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"
}
]

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::kOpenCLStatus], gpu::kStatusSupported);
EXPECT_EQ(variables[gpu::kStatus], gpu::kStatusSupported);
}
TEST_F(DeviceDbTest, StatusLookupBasedOnDerivedProperties) {

View File

@ -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