Quantize Aware Training - FasterRCNN #9955
Unanswered
suchig
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to quantize a FasterRCNN based model (from pytorch torchvision). My Lightning module is shown way below.
Problem:
When I try Trainer.fit(), I get the error that "one of the variables needed for gradient computation has been modified by an inplace operation".
What I tried:
Ask:
How to resolve this error?
Quant Model:
class FasterRCNN_Quant(pl.LightningModule):
def init(self, model: torch.nn.Module ):
super().init()
self.model = model
Beta Was this translation helpful? Give feedback.
All reactions