Skip to content

When I called Trainer.test, some hooks fit are also called #6376

@dalek-who

Description

@dalek-who

🐛 Bug

When I called Trainer.test, some hooks fit are also called, which including: on_fit_start, on_fit_end, and teardown(stage=fit)
I found a similar issue of setup(stage=fit), that bug has been fixed, but seems these hooks also have this bug
#2715 (comment)

Please reproduce using the BoringModel

https://colab.research.google.com/drive/1GA2Uo8cBaziqoBUI5K2r5x5BjjaZQRJe?usp=sharing

Expected behavior

during trainer.test, on_fit_start, on_fit_end, teardown(stage=fit) should not be called
(also could you please check if other hooks have this bug?)

Environment

  • CUDA:
    • GPU:
      • Tesla T4
    • available: True
    • version: 10.1
  • Packages:
    • numpy: 1.19.5
    • pyTorch_debug: False
    • pyTorch_version: 1.7.1+cu101
    • pytorch-lightning: 1.2.2
    • tqdm: 4.41.1
  • System:
    • OS: Linux
    • architecture:
      • 64bit
    • processor: x86_64
    • python: 3.7.10
    • version: Proposal for help #1 SMP Thu Jul 23 08:00:38 PDT 2020

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedOpen to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions