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

CIFAR100 significantly increases memory usage #10

Open
liu-qi-a opened this issue Jun 20, 2024 · 1 comment
Open

CIFAR100 significantly increases memory usage #10

liu-qi-a opened this issue Jun 20, 2024 · 1 comment

Comments

@liu-qi-a
Copy link

When running DATM.py on CIFAR10 and CIFAR100, CIFAR10 hardly increases memory usage, but CIFAR100 significantly increases memory usage each time the following code is executed. What could be the reason for this?

for step in range(args.syn_steps):
       .......
       grad = torch.autograd.grad(ce_loss, student_params[-1], create_graph=True)[0]
       .......
@GzyAftermath
Copy link
Collaborator

Maybe because the surrogate model used for cifar-100 has 10x more parameters in the fully connected layer 🤔.

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