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

Henry/wallclock #488

Merged
merged 12 commits into from
Feb 4, 2022
Merged

Conversation

henrymoss
Copy link
Collaborator

@henrymoss henrymoss commented Feb 2, 2022

As requested by @apaleyes and @vpicheny , I have added in some wallclock timing to our Tensorboard logging.

Its very self explanatory.

henrymoss added 2 commits February 2, 2022 17:59
Copy link
Collaborator

@uri-granta uri-granta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Various comments but happy for you to merge once you've addressed them.

Copy link
Collaborator

@vpicheny vpicheny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I can contribute much technically to this PR, but should we consider reflecting this functionality in a notebook somehow?

henrymoss added 3 commits February 3, 2022 08:39
@henrymoss
Copy link
Collaborator Author

not sure I can contribute much technically to this PR, but should we consider reflecting this functionality in a notebook somehow?

Mentioned it in the logging notebook

Copy link
Collaborator

@uri-granta uri-granta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better. Just a couple more comments (sorry).

Copy link
Collaborator

@apaleyes apaleyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was lightning fast, thanks Henry! Only nitpicking at this point

Comment on lines 459 to 465
with timeit() as total_wallclock_timer:
if step == 0 and fit_initial_model:
with timeit() as initial_model_fitting_timer:
for tag, model in models.items():
dataset = datasets[tag]
model.update(dataset)
model.optimize(dataset)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks like way too many levels of nesting, but i don't have a good alternative. @uri-granta any ideas?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine (though I used to write LISP code so maybe I'm not scared of nesting as much as I should be)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method overall looks pretty scary to me. half-way through it's hard to figure out at which level you are

henrymoss added 2 commits February 3, 2022 09:25
Copy link
Collaborator

@uri-granta uri-granta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@henrymoss henrymoss merged commit ce84c5e into secondmind-labs:develop Feb 4, 2022
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.

4 participants