-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application Error with matching domain #174
Comments
Possibly related: Nested calls like .con print_m2d [mem:%mem.M] = {
print_double_matrix_wrap (mem, l, n, m2d, return_cont)
};
.con print_m1d [mem:%mem.M] = {
print_double_matrix_wrap (mem, k, l, m1d, print_m2d)
};
print_double_matrix_wrap (mem, k, n, m, print_m1d) (or the inlined version print_double_matrix_wrap (mem, k, n, m , .cn [mem: %mem.M] = {
print_double_matrix_wrap (mem, k, l, m1d, .cn [mem: %mem.M] = {
print_double_matrix_wrap (mem, l, n, m2d, return_cont)
}) ) lit/autodiff/matrix/prod.thorin:33:15-33:94: error: cannot pass argument
'.proxy#8#0 print_double_matrix_wrap_6406994, 3' of type
'%matrix.Mat (2, (k_6407046, l_6407048), %math.F (52, 11))' to
'%core.bitcast (%matrix.Mat (2, ‹2; ⊤:.Nat›, %math.F (52, 11)), %matrix.Mat (2, (.proxy#8#0 print_double_matrix_wrap_6406994, 1, .proxy#8#0 print_double_matrix_wrap_6406994, 2), %math.F (52, 11)))' of domain
'%matrix.Mat (2, (.proxy#8#0 print_double_matrix_wrap_6406994, 1, .proxy#8#0 print_double_matrix_wrap_6406994, 2), %math.F (52, 11)) The error does not occur with a single print call. Fork: NeuralCoder3 Note: This branch temporarily jumps the other alpha equiv problem using string comparisons (on the printed expressions). |
Good thing: In my recent PR, I changed the alpha-equiv magic to always work optimistically. I.e. if you invoke |
#180 :
|
The index issue was temporarily from switching the map to the absl one. |
* fixed bug in alpha-equiv - relaged to #174? * fixed bug in lower_matrix_mediumlevel.cpp (wrong filter type) * still some problems when trying to infer return type of lam
Can you check with #219? |
I will test it. But it will take time to resolve all the merge conflicts. |
I get an error that an application can not be constructed ("cannot pass argument") although the type of the argument matches the domain exactly:
Fork: NeuralCoder3
Branch: ad_ptr_merge
Commit: ee33da0
Command:
./build/bin/thorin -d matrix -d affine -d direct -d clos -d math -d autodiff lit/autodiff/matrix/prod.thorin -o - -VVVV
Situation: In the matrix medium level lowering pass.
The text was updated successfully, but these errors were encountered: