Skip to content

raise NotImplementedError #16

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

Open
WSDW-wh opened this issue Mar 27, 2023 · 0 comments
Open

raise NotImplementedError #16

WSDW-wh opened this issue Mar 27, 2023 · 0 comments

Comments

@WSDW-wh
Copy link

WSDW-wh commented Mar 27, 2023

您好,我在运行train.py文件的时候,在跳转到trainer文件的TrainerX(SimpleTrainer),会遇到这个问题:
for self.batch_idx, batch in enumerate(self.train_loader_x):
data_time.update(time.time() - end)
loss_summary = self.forward_backward(batch)
batch_time.update(time.time() - end)
losses.update(loss_summary)
其中:
def forward_backward(self, batch):
raise NotImplementedError
是这样定义的,所以我一运行就报这个错误,我的基础比较差,不知道能不能麻烦您解释一下,帮我看看这个问题

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

1 participant