Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Unit05-8 Adding Functionalities with Callback #68

@chanhdpham

Description

@chanhdpham

The slides seem wrong. The slides are inconsistent with the API document about the Callback class.
In the slides:
from pytorch_lightning.callbacks import Callback
Class MyCustomCallback(Callback):
...
In the "Callback API" document:
Class MyCustomCallback(lightning.Callback):
...
I defined MyCustomCallback class for exercise 2 and it give me runtime error at trainer = L.Trainer(...
When I used lightning.Callback, it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions