Skip to content
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

Fix for tril, triu when kernel_sched returns LS, GS such that LS*GS < N #589

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wonghang
Copy link
Contributor

@wonghang wonghang commented Feb 8, 2020

An issue arises from the following discussion:

https://groups.google.com/d/msg/theano-users/lc6uMHU2rn4/Soxjr5c1FQAJ

It is related to issue #438 . The current implementation of tril, triu and do_call do not take into account when the case kernel_sched returns LS and GS such that LS*GS < N.

This PR is a quick fix by computing LS and GS itself and it guarantees LS*GS >= N.
I know that it may not be the most efficient value of LS, GS.
However, I am not sure the logic behind kernel_sched and I believe if I modify it, everything may be affected. Therefore I decided to let tril and triu compute their own value of LS and GS in tril to triu to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant