Skip to content

TypeError: __init__() got an unexpected keyword argument 'max_nb_epochs' #4562

@tianke0711

Description

@tianke0711
from pytorch_lightning import Trainer
from argparse import ArgumentParser
# from research_seed.digit_recognition.mnist import MNISTRecognizer


# def main():
model = MNISTRecognizer()
trainer = Trainer(max_nb_epochs=50,gpus=1)
trainer.fit(model)

pytorch-lightning==0.9.1rc1

There is error:
TypeError: init() got an unexpected keyword argument 'max_nb_epochs'

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions