Use "in symbol.__dict__" instead of "hasattr" to check if a symbol has api
names set. The former would behave correctly for subclasses. Also, moving get_v1_names|constants and get_v2_names|constants functions to tf_export.py to reduce code duplication. PiperOrigin-RevId: 225063242
Showing
想要评论请 注册 或 登录