Make GetDType<T> a compiler error instead of link error when unexpected type T is used.
Make GetDType<T> a compiler error instead of link error when unexpected type T is used.

PiperOrigin-RevId: 378976295

tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime