Add LINT.IfChange
This commit is contained in:
parent
d8bfc935fd
commit
e7733c8dd4
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user