mirror of
https://github.com/labmlai/annotated_deep_learning_paper_implementations.git
synced 2025-08-16 10:51:23 +08:00
loop timing
This commit is contained in:
@ -493,7 +493,7 @@ class Configs(BaseConfigs):
|
|||||||
# Loop through epochs
|
# Loop through epochs
|
||||||
for epoch in monit.loop(self.epochs):
|
for epoch in monit.loop(self.epochs):
|
||||||
# Loop through the dataset
|
# Loop through the dataset
|
||||||
for i, batch in enumerate(self.dataloader):
|
for i, batch in monit.enum('Train', self.dataloader):
|
||||||
# Move images to the device
|
# Move images to the device
|
||||||
data_x, data_y = batch['x'].to(self.device), batch['y'].to(self.device)
|
data_x, data_y = batch['x'].to(self.device), batch['y'].to(self.device)
|
||||||
|
|
||||||
@ -528,6 +528,8 @@ class Configs(BaseConfigs):
|
|||||||
# Update learning rates
|
# Update learning rates
|
||||||
self.generator_lr_scheduler.step()
|
self.generator_lr_scheduler.step()
|
||||||
self.discriminator_lr_scheduler.step()
|
self.discriminator_lr_scheduler.step()
|
||||||
|
# New line
|
||||||
|
tracker.new_line()
|
||||||
|
|
||||||
def optimize_generators(self, data_x: torch.Tensor, data_y: torch.Tensor, true_labels: torch.Tensor):
|
def optimize_generators(self, data_x: torch.Tensor, data_y: torch.Tensor, true_labels: torch.Tensor):
|
||||||
"""
|
"""
|
||||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open("readme.md", "r") as f:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='labml-nn',
|
name='labml-nn',
|
||||||
version='0.4.80',
|
version='0.4.81',
|
||||||
author="Varuna Jayasiri, Nipun Wijerathne",
|
author="Varuna Jayasiri, Nipun Wijerathne",
|
||||||
author_email="vpjayasiri@gmail.com, hnipun@gmail.com",
|
author_email="vpjayasiri@gmail.com, hnipun@gmail.com",
|
||||||
description="A collection of PyTorch implementations of neural network architectures and layers.",
|
description="A collection of PyTorch implementations of neural network architectures and layers.",
|
||||||
|
Reference in New Issue
Block a user