Skip to content

[ADD] Allow retrieving internals from the forward pass#3

Merged
ltatzel merged 2 commits intodevelopfrom
more-info-forward-func
Oct 27, 2021
Merged

[ADD] Allow retrieving internals from the forward pass#3
ltatzel merged 2 commits intodevelopfrom
more-info-forward-func

Conversation

@f-dangel
Copy link
Collaborator

This PR introduces a new flag internals to get_batch_loss_and_accuracy_func which allows to create a closure that also returns internal tensors of the forward pass (like inputs, labels, model output). These will be helpful for debugging, as well as implementing optimizer functionality (e.g. GGN-vector products that require the model output).

Should be merged after #2 as it is branched from this PR.

@f-dangel f-dangel requested a review from ltatzel September 22, 2021 09:41
@ltatzel ltatzel merged commit eccbd4a into develop Oct 27, 2021
@ltatzel ltatzel deleted the more-info-forward-func branch October 27, 2021 08:41
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.

2 participants