-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Use time.perf_counter
for aesara.function
timing results
#1262
Conversation
Hello reviewers, this is my first PR in this repo, I will try to make more PRs in the future. I wanted to know more about this project and about Theano's/Aesara's symbolic computation graphs, so I thought making a few PRs on the way might be good. A couple of questions -
but I also got the same error with the latest commit on the main branch, so I don't think the error has anything to do with the changes in this PR. Is there some setup or installation that I am missing? I am able to successfully use
|
I reran the test on the
It is better to open separate PRs for separate issues unless they're directly related. It makes the review process easier and generally means we can merge PRs faster. It is also best to centralize the information and ask questions in the issue directly. I added a suggestion there. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1262 +/- ##
=======================================
Coverage 74.10% 74.10%
=======================================
Files 174 174
Lines 48624 48624
Branches 10351 10351
=======================================
Hits 36035 36035
Misses 10301 10301
Partials 2288 2288
|
Please capitalize your commit as explained in this reference in the PR checklist and use a message more explicit than "refactor X", such as e.g. "Use |
I have updated the commit message as requested. |
The CI did pass( the first run) with all green, so I did a |
The latest test failures on the CI are due to the following -
It was some sort of a network issue, I think it might pass if we reran the tests. |
Thanks for the PR! Before going any further, we need to address #1246 (comment). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what's up, but I'm seeing Codecov warnings in the full "Files changed" diff for code that wasn't changed. Perhaps we need to update the Codecov settings?
@brandonwillard I am not sure how the CI is setup, but Instead of maybe changing/loosening the settings, can we check why It would seem my PR is not the only one that is facing this issue, and this issue might be flaky( Can we just rerun only |
Well, it looks like the issue has gone away by itself, because now I don't see all those beta-feature annotations any more. We could likely make some improvements to the Codecov settings, though. Regardless, it looks like a merge commit has been added, so we'll need to rebase this and remove it in order to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes seem fine. The only questions I have are:
- Should we use
time.perf_counter_ns
instead? - Do we want to make the timer/counter configurable?
The first question is the only one that's relevant to merging this PR right now, and it probably isn't very important. The second question could/should easily be its own issue and/or PR.
If we do a squash and merge this will not be a problem.
This sounds reasonable. Also, doesn't it make sense to record it as
Configurable, how? What needs to be configured? |
Whichever way is fine; I just want to be clear that this branch can't be added to
Yes, that's one of the things that made me think about it.
For instance, if one wanted to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep things simple, I'm going to merge this now and we can follow up with new issues for the other ideas mentioned here, if need be.
time.perf_counter
for aesara.function
timing results
closes #1246
Changing the timing function for high-precision performance measurement.
Note to reviewers -
time_ns()
function is only available from Python 3.7 onwards. Let me know if that is an issue for the library.