前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
Created by: cclauss
Identity is not the same thing as equality in Python.
$ python
>>> self_dtype = "float" >>> self_dtype += "16" >>> self_dtype == "float16" True >>> self_dtype is "float16" False