aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorPrashant Kumar <prashant@nod-labs.com>2022-12-01 16:27:33 +0000
committerPrashant Kumar <prashant@nod-labs.com>2022-12-02 02:34:31 +0000
commit58c8b253cdd5ccd4e61d5854a8a614b35498276f (patch)
treedeb1a894e7095953e258fb5f9b277bcbebe8cb9f /clang/lib/Lex/ModuleMap.cpp
parent0fb74d0ff828e817caf92e83c6b1f25a8fd491ad (diff)
downloadllvm-58c8b253cdd5ccd4e61d5854a8a614b35498276f.zip
llvm-58c8b253cdd5ccd4e61d5854a8a614b35498276f.tar.gz
llvm-58c8b253cdd5ccd4e61d5854a8a614b35498276f.tar.bz2
Replacing `is` with `==` for the dtype check.
>>> a = np.ndarray([1,1]).astype(np.half) >>> a array([[0.007812]], dtype=float16) >>> a.dtype dtype('float16') >>> a.dtype == np.half True >>> a.dtype == np.float16 True >>> a.dtype is np.float16 False Checking with `is` leads to inconsistency in checking. Reviewed By: silvas Differential Revision: https://reviews.llvm.org/D139121
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions