Hello everyone, I am trying to understand more about the `te` in tvm, but I'm 
confused about the error `Check failed: is_zero(dom->min) == false` during the 
below code executing:

```python
import tvm
from tvm import te

dtype = "float32"

n = te.size_var("n", dtype=dtype)
k = te.size_var("k", dtype=dtype)
m = te.size_var("m", dtype=dtype)
A = te.placeholder((n, n), name="A", dtype=dtype)
B = te.placeholder((k, k), name="B", dtype=dtype)

T = te.compute((m, m), lambda i, j: (A[i][j].astype(dtype) * 
B[i][j].astype(dtype)).astype(dtype))
s = te.create_schedule(T.op)
tvm.build(s, [A, B, T])
```

```
TVMError:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
  Check failed: (is_zero(op->min)) is false:
```

But it works well if  I define `dtype = "int32"`, so I'm curious about the 
reason why this error occurs.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/dtype-float32-leads-to-assertion-error-check-failed-is-zero-dom-min-false/10385/1)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/2bf4e0f6516ab237f01e26c692ff7de4f2e07917b8cf6c4d10249e408d0c6ff7).

Reply via email to