llvm-project/mlir/python
Prashant Kumar 58c8b253cd 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
2022-12-02 02:34:31 +00:00
..
mlir Replacing `is` with `==` for the dtype check. 2022-12-02 02:34:31 +00:00
.style.yapf
CMakeLists.txt [mlir] add OperationType to the Transform dialect 2022-10-11 09:55:19 +00:00
requirements.txt Upstream MLIR PyTACO implementation. 2022-01-21 08:38:36 -08:00