Add LINT.IfChange

This commit is contained in:
Reed 2020-06-18 16:52:51 -07:00
parent d8bfc935fd
commit e7733c8dd4

View File

@ -73,6 +73,7 @@ class AutoMixedPrecisionLists {
static void AddTensorListOps(gtl::FlatSet<string>* list) { static void AddTensorListOps(gtl::FlatSet<string>* list) {
// Note: if a data structure op (such as TensorListPopBack) is added here, // Note: if a data structure op (such as TensorListPopBack) is added here,
// IsTensorListReaderOp or IsTensorListWriterOp may need to be modified // IsTensorListReaderOp or IsTensorListWriterOp may need to be modified
// LINT.IfChange
constexpr char* tensor_list_ops[] = { constexpr char* tensor_list_ops[] = {
"TensorListConcat", "TensorListConcat",
"TensorListConcatLists", "TensorListConcatLists",
@ -90,6 +91,7 @@ class AutoMixedPrecisionLists {
"TensorListSplit", "TensorListSplit",
"TensorListStack" "TensorListStack"
}; };
// LINT.ThenChange(//tensorflow/core/grappler/optimizers/auto_mixed_precision.cc)
for (auto op : tensor_list_ops) { for (auto op : tensor_list_ops) {
list->insert(op); list->insert(op);
} }