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

LR finder for optimizing a single input tensor? #80

Closed
ProGamerGov opened this issue Jan 28, 2022 · 2 comments
Closed

LR finder for optimizing a single input tensor? #80

ProGamerGov opened this issue Jan 28, 2022 · 2 comments

Comments

@ProGamerGov
Copy link

ProGamerGov commented Jan 28, 2022

I have an optimization task that optimizes a single tensor by passing it through a set of transforms and then into the model. Losses are then calculated by using hooks attached to various model layers.

Is is possible to use this project for finding the optimal LR for my optimization task? The code looks like it requires a DataLoader instance.

@davidtvs
Copy link
Owner

davidtvs commented Feb 5, 2022

A DataLoader is not strictly needed. It requires an instance of TrainDataLoaderIter and optionally ValDataLoaderIter.
You can implement classes that inherit from these and modify their behavior. The important thing is that the next method must return a pair of input, label which are then used for the forward pass and loss calculation.

@davidtvs
Copy link
Owner

davidtvs commented Feb 3, 2024

Closing due to inactivity

@davidtvs davidtvs closed this as completed Feb 3, 2024
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

No branches or pull requests

2 participants