您的当前位置:首页正文

on_train_batch_start() missing 1 required positional argument: ‘dataloader_idx‘

2024-11-19 来源:个人技术集锦

def on_train_batch_start(self, batch, batch_idx, dataloader_idx):
def on_train_batch_end(self, trainer, pl_module, outputs, batch, batch_idx, dataloader_idx):

改为

def on_train_batch_start(self, batch, batch_idx):
def on_train_batch_end(self, trainer, pl_module, outputs, batch, batch_idx):
显示全文