Add change guards to constants copied in linter.proto

PiperOrigin-RevId: 284151950
Change-Id: I62dca705314590a3030c27ed9c20e4959610dd5b
This commit is contained in:
Stefano Galarraga 2019-12-06 03:05:48 -08:00 committed by TensorFlower Gardener
parent d0e55241d5
commit dbef8861c9
2 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,7 @@ class NNMemory {
ANeuralNetworksMemory* nn_memory_handle_ = nullptr;
};
enum class NNAPIValidationFailureType : int {
// The operator is not supported by either NNAPI or the NNAPI Delegate.
kUnsupportedOperator = 0,
@ -226,6 +227,7 @@ enum class NNAPIValidationFailureType : int {
kUnsupportedQuantizationParameters = 15,
};
struct NNAPIValidationFailure {
NNAPIValidationFailureType type;
std::string message;

View File

@ -185,6 +185,7 @@ table Tensor {
// ones, but not by much. Moreover, while custom operators accept an opaque
// object containing configuration parameters, builtins have a predetermined
// set of acceptable options.
enum BuiltinOperator : byte {
ADD = 0,
AVERAGE_POOL_2D = 1,
@ -318,6 +319,7 @@ enum BuiltinOperator : byte {
SCATTER_ND = 122
}
// Options for the builtin operators.
union BuiltinOptions {
Conv2DOptions,