Closed johanneslenfers closed 3 years ago
If you dissect the inference exception, the problem is in solving:
((dt1574 -> dt1575) -> ...) ~ (nat -> ...)
((dt1658 -> dt1659) -> ...) ~ (nat -> ...)
So, it looks like a nat is given as argument to a non-nat-dependent function, or in the opposite direction a nat is not given to a nat-dependent function.
Here is a fix:
https://github.com/rise-lang/shine/commit/241410c6980fc52fbff2470bb04892599ba75b2a
mapGlobal
is not a nat-dependent function, it is a collection of primitives indexed by an Int
dimension.
Describe the bug Tried to setup autotuning for HarrisCornerDetection. As TuningParameters are specified as
Nat
, I changed this function to takeNat
instead ofInt
. Now, I get aninference exception
:To Reproduce Execute Test harris tuning in branch harris_tuning
Output