Mano Bharathi M

Results 5 comments of Mano Bharathi M

Injecting new line : ``` def on_train_epoch_end(self): loss = torch.stack(self.batch_losses).mean() self.log('loss', loss, on_step=False, on_epoch=True, prog_bar=True) print(f"Epoch {self.current_epoch} --> loss{loss.item()}") self.batch_losses.clear() print("") ``` Output will look like this: ![image](https://github.com/Lightning-AI/pytorch-lightning/assets/88357044/adca5152-6d90-4ef1-965c-5dfd9b857035) @jojje Do...

Hi @dacorvo , My initial approach was 1. quantize the model using quantize function. 2. Iterate the state_dict and check if it's value is tensor type then it's weight so...

If I am not wrong, this is what we need to do it in helper `requantize` `` model = quantize(model) model.load_state_dict(state_dict,assign=True) ``

Thanks, I will think about unit test !

Cal If I am not wrong, test function can be further extended.. > The process is a bit convoluted, as it requires the target model to be quantized first without...