Allow creating nullptr AttrHeaderBase to support TypedAttrBase::dyn_cast. TypedAttrBase::dyn_cast should return a nullptr if type mismatch.

PiperOrigin-RevId: 333419997
Change-Id: Ib3e9d25b0cf95dbb37117f52ded3ec8478f4131f
This commit is contained in:
Xiao Yu 2020-09-23 18:54:53 -07:00 committed by TensorFlower Gardener
parent 406ca6ad78
commit 9709a5af66

View File

@ -2206,6 +2206,7 @@ cuda_py_test(
size = "medium",
srcs = ["linalg_ops_test.py"],
tags = ["no_windows_gpu"],
tfrt_enabled = True,
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",