vfdev-5: > I don't understand yet why lr_finder implies to save trainer but it's a detail :)

because when lr finder is run, engine is run too. Thus we need to come back to the initial state.
diff --git a/ignite/contrib/handlers/lr_finder.py b/ignite/contrib/handlers/lr_finder.py
index a6804ea3..c0a19c20 100644
--- a/ignite/contrib/handlers/lr_finder.py
+++ b/ignite/contrib/handlers/lr_finder.py
@@ -310,7 +310,9 @@ class FastaiLRFinder:
         # store to_save
         with tempfile.TemporaryDirectory() as tmpdirname:
             obj = {k: o.state_dict() for k, o in to_save.items()}
-            cache_filepath = Path(tmpdirname) / "ignite_lr_finder_cache.pt.tar"
+            # add trainer
+            obj["trainer"] = trainer.state_dict()
+            cache_filepath = Path(tmpdirname) / "ignite_lr_finder_cache.pt"
             torch.save(obj, cache_filepath.as_posix())
 
             optimizer = to_save["optimizer"]
@@ -336,9 +338,10 @@ class FastaiLRFinder:
             self._detach(trainer)
             # restore to_save and reset trainer's state
             obj = torch.load(cache_filepath.as_posix())
-            trainer.state = None
+            trainer.load_state_dict(obj["trainer"])
             for k, o in obj.items():
-                to_save[k].load_state_dict(o)
+                if k in to_save:
+                    to_save[k].load_state_dict(o)
 
 
 class _ExponentialLR(_LRScheduler):
diff --git a/ignite/contrib/handlers/param_scheduler.py b/ignite/contrib/handlers/param_scheduler.py
index ecbe9121..f129ad41 100644
--- a/ignite/contrib/handlers/param_scheduler.py
+++ b/ignite/contrib/handlers/param_scheduler.py
@@ -51,7 +51,7 @@ class ParamScheduler(metaclass=ABCMeta):
             name = self.param_name
 
         if self.save_history:
-            if not hasattr(engine.state, "param_history"):
+            if not hasattr(engine.state, "param_history") or engine.state.param_history is None:
                 setattr(engine.state, "param_history", {})
             engine.state.param_history.setdefault(name, [])
             values = [pg[self.param_name] for pg in self.optimizer_param_groups]
diff --git a/ignite/engine/engine.py b/ignite/engine/engine.py
index 73857fd1..8983afc3 100644
--- a/ignite/engine/engine.py
+++ b/ignite/engine/engine.py
@@ -5,7 +5,7 @@ import warnings
 import weakref
 from collections import OrderedDict, defaultdict
 from collections.abc import Mapping
-from typing import Any, Callable, Iterable, List, Optional, Tuple
+from typing import Any, Callable, Iterable, List, Optional
 
 from ignite._utils import _to_hours_mins_secs
 from ignite.base import Serializable
@@ -24,7 +24,8 @@ class Engine(Serializable):
 
     Attributes:
         state (State): object that is used to pass internal and user-defined state between event handlers.
-            It is created and reset on every :meth:`~ignite.engine.Engine.run`.
+            It is created with the engine and its attributes (e.g. `state.iteration`, `state.epoch` etc) are reset
+            on every :meth:`~ignite.engine.Engine.run`.
         last_event_name (Events): last event name triggered by the engine.
 
     Examples:
@@ -125,7 +126,7 @@ class Engine(Serializable):
         self.last_event_name = None
         self.should_terminate = False
         self.should_terminate_single_epoch = False
-        self.state = None
+        self.state = State()
         self._state_dict_user_keys = []
         self._allowed_events = []
 
@@ -195,6 +196,8 @@ class Engine(Serializable):
             self._allowed_events.append(e)
             if event_to_attr and e in event_to_attr:
                 State.event_to_attr[e] = event_to_attr[e]
+        # we need to update state attributes associated with new custom events
+        self.state._update_attrs()
 
     def _handler_wrapper(self, handler: Callable, event_name: Any, event_filter: Callable) -> Callable:
         # signature of the following wrapper will be inspected during registering to check if engine is necessary
@@ -468,8 +471,6 @@ class Engine(Serializable):
                 a dictionary containing engine's state
 
         """
-        if self.state is None:
-            return OrderedDict()
         keys = self._state_dict_all_req_keys + (self._state_dict_one_of_opt_keys[0],)
         keys += tuple(self._state_dict_user_keys)
         return OrderedDict([(k, getattr(self.state, k)) for k in keys])
@@ -481,6 +482,8 @@ class Engine(Serializable):
         `seed`. If `engine.state_dict_user_keys` contains keys, they should be also present in the state dictionary.
         Iteration and epoch values are 0-based: the first iteration or epoch is zero.
 
+        This method does not remove any custom attributs added by user.
+
         Args:
             state_dict (Mapping): a dict with parameters
 
@@ -505,16 +508,23 @@ class Engine(Serializable):
                         k, state_dict.keys()
                     )
                 )
-
-        self.state = State(max_epochs=state_dict["max_epochs"], epoch_length=state_dict["epoch_length"], metrics={},)
+        self.state.max_epochs = state_dict["max_epochs"]
+        self.state.epoch_length = state_dict["epoch_length"]
         for k in self._state_dict_user_keys:
             setattr(self.state, k, state_dict[k])
 
         if "iteration" in state_dict:
             self.state.iteration = state_dict["iteration"]
-            self.state.epoch = self.state.iteration // self.state.epoch_length
+            self.state.epoch = 0
+            if self.state.epoch_length is not None:
+                self.state.epoch = self.state.iteration // self.state.epoch_length
         elif "epoch" in state_dict:
             self.state.epoch = state_dict["epoch"]
+            if self.state.epoch_length is None:
+                raise ValueError(
+                    "If epoch is provided in the state dict, epoch_length should not be None. "
+                    "Input state_dict: {}".format(state_dict)
+                )
             self.state.iteration = self.state.epoch_length * self.state.epoch
 
     @staticmethod
@@ -610,7 +620,7 @@ class Engine(Serializable):
                 "Please, use torch.manual_seed or ignite.utils.manual_seed"
             )
 
-        if self.state is not None:
+        if self.state.max_epochs is not None:
             # Check and apply overridden parameters
             if max_epochs is not None:
                 if max_epochs < self.state.epoch:
@@ -627,7 +637,7 @@ class Engine(Serializable):
                         )
                     )
 
-        if self.state is None or self._is_done(self.state):
+        if self.state.max_epochs is None or self._is_done(self.state):
             # Create new state
             if max_epochs is None:
                 max_epochs = 1
@@ -637,7 +647,10 @@ class Engine(Serializable):
                     if epoch_length < 1:
                         raise ValueError("Input data has zero size. Please provide non-empty data")
 
-            self.state = State(iteration=0, epoch=0, max_epochs=max_epochs, epoch_length=epoch_length)
+            self.state.iteration = 0
+            self.state.epoch = 0
+            self.state.max_epochs = max_epochs
+            self.state.epoch_length = epoch_length
             self.logger.info("Engine run starting with max_epochs={}.".format(max_epochs))
         else:
             self.logger.info(
diff --git a/ignite/engine/events.py b/ignite/engine/events.py
index 82af5a4e..7e9e02ea 100644
--- a/ignite/engine/events.py
+++ b/ignite/engine/events.py
@@ -310,6 +310,9 @@ class State:
         for k, v in kwargs.items():
             setattr(self, k, v)
 
+        self._update_attrs()
+
+    def _update_attrs(self):
         for value in self.event_to_attr.values():
             if not hasattr(self, value):
                 setattr(self, value, 0)

Initialize engine.state before calling run
## 🚀 Feature

Idea is to improve flexibility of Engine and simplify user code by initializing `engine.state` before calling `run`.

What we gain:
```python
trainer = Engine(...)
trainer.state.alpha = 0.0
trainer.state.beta = 1.0
```


diff --git a/tests/ignite/contrib/handlers/test_lr_finder.py b/tests/ignite/contrib/handlers/test_lr_finder.py
index 8de6d45f..cf22659b 100644
--- a/tests/ignite/contrib/handlers/test_lr_finder.py
+++ b/tests/ignite/contrib/handlers/test_lr_finder.py
@@ -136,8 +136,9 @@ def test_model_optimizer_reset(lr_finder, to_save, dummy_engine, dataloader):
     init_model_sd = copy.deepcopy(model.state_dict())
     init_trainer_sd = copy.deepcopy(dummy_engine.state_dict())
 
-    with lr_finder.attach(dummy_engine, to_save=to_save, diverge_th=float("inf")) as trainer_with_finder:
-        trainer_with_finder.run(dataloader)
+    with pytest.warns(UserWarning, match=r"Run completed without loss diverging"):
+        with lr_finder.attach(dummy_engine, to_save=to_save, diverge_th=float("inf")) as trainer_with_finder:
+            trainer_with_finder.run(dataloader)
 
     assert init_optimizer_sd == optimizer.state_dict()
     assert init_model_sd == model.state_dict()
@@ -167,18 +168,23 @@ def assert_output_sizes(lr_finder, dummy_engine):
 
 def test_num_iter_is_none(lr_finder, to_save, dummy_engine, dataloader):
 
-    with lr_finder.attach(dummy_engine, to_save=to_save, diverge_th=float("inf")) as trainer_with_finder:
-        trainer_with_finder.run(dataloader)
-        assert_output_sizes(lr_finder, dummy_engine)
-        assert dummy_engine.state.iteration == len(dataloader)
+    with pytest.warns(UserWarning, match=r"Run completed without loss diverging"):
+        with lr_finder.attach(dummy_engine, to_save=to_save, diverge_th=float("inf")) as trainer_with_finder:
+            trainer_with_finder.run(dataloader)
+            assert_output_sizes(lr_finder, dummy_engine)
+            assert dummy_engine.state.iteration == len(dataloader)
 
 
 def test_num_iter_is_enough(lr_finder, to_save, dummy_engine, dataloader):
-    with lr_finder.attach(dummy_engine, to_save=to_save, num_iter=50, diverge_th=float("inf")) as trainer_with_finder:
-        trainer_with_finder.run(dataloader)
-        assert_output_sizes(lr_finder, dummy_engine)
-        # -1 because it terminates when state.iteration > num_iter
-        assert dummy_engine.state.iteration - 1 == 50
+
+    with pytest.warns(UserWarning, match=r"Run completed without loss diverging"):
+        with lr_finder.attach(
+            dummy_engine, to_save=to_save, num_iter=50, diverge_th=float("inf")
+        ) as trainer_with_finder:
+            trainer_with_finder.run(dataloader)
+            assert_output_sizes(lr_finder, dummy_engine)
+            # -1 because it terminates when state.iteration > num_iter
+            assert dummy_engine.state.iteration - 1 == 50
 
 
 def test_num_iter_is_not_enough(lr_finder, to_save, dummy_engine, dataloader):
diff --git a/tests/ignite/contrib/handlers/test_param_scheduler.py b/tests/ignite/contrib/handlers/test_param_scheduler.py
index f7b74c19..499ce437 100644
--- a/tests/ignite/contrib/handlers/test_param_scheduler.py
+++ b/tests/ignite/contrib/handlers/test_param_scheduler.py
@@ -384,6 +384,8 @@ def test_concat_scheduler_two_schedulers():
             assert lrs == pytest.approx([v for i, v in simulated_values])
             concat_scheduler.load_state_dict(state_dict)
 
+            trainer.state.param_history = None
+
     _test(duration_vals_as_np_int=False)
     _test(duration_vals_as_np_int=True)
 
@@ -456,6 +458,8 @@ def test_concat_scheduler_two_linear():
         assert lrs == pytest.approx([v for i, v in simulated_values])
         concat_scheduler.load_state_dict(state_dict)
 
+        trainer.state.param_history = None
+
 
 def test_concat_scheduler_3_schedulers():
     tensor = torch.zeros([1], requires_grad=True)
@@ -527,6 +531,8 @@ def test_concat_scheduler_3_schedulers():
         assert lrs == pytest.approx([v for i, v in simulated_values])
         concat_scheduler.load_state_dict(state_dict)
 
+        trainer.state.param_history = None
+
 
 def test_save_param_history():
     tensor = torch.zeros([1], requires_grad=True)
@@ -1022,6 +1028,8 @@ def test_create_lr_scheduler_with_warmup_on_combined_scheduler():
                 param_history = trainer.state.param_history["lr"]
                 assert lrs == pytest.approx([v[0] for v in param_history])
 
+                trainer.state.param_history = None
+
             scheduler.load_state_dict(state_dict)
 
     _test(save_history=False)
diff --git a/tests/ignite/engine/test_engine_state_dict.py b/tests/ignite/engine/test_engine_state_dict.py
index bb4d485f..a9413853 100644
--- a/tests/ignite/engine/test_engine_state_dict.py
+++ b/tests/ignite/engine/test_engine_state_dict.py
@@ -11,7 +11,10 @@ from tests.ignite.engine import BatchChecker, EpochCounter, IterationCounter
 def test_state_dict():
     engine = Engine(lambda e, b: 1)
     sd = engine.state_dict()
-    assert isinstance(sd, Mapping) and len(sd) == 0
+    assert isinstance(sd, Mapping) and len(sd) == 3
+    assert "iteration" in sd and sd["iteration"] == 0
+    assert "max_epochs" in sd and sd["max_epochs"] is None
+    assert "epoch_length" in sd and sd["epoch_length"] is None
 
     def _test(state):
         engine.state = state
@@ -76,6 +79,10 @@ def test_load_state_dict_asserts():
     with pytest.raises(ValueError, match=r"Required user state attribute"):
         engine.load_state_dict({"max_epochs": 100, "epoch_length": 120, "iteration": 12})
 
+    engine = Engine(lambda e, b: 1)
+    with pytest.raises(ValueError, match=r"If epoch is provided in the state dict, epoch_length should not be None"):
+        engine.load_state_dict({"max_epochs": 100, "epoch": 2, "epoch_length": None})
+
 
 def test_load_state_dict():
     engine = Engine(lambda e, b: 1)
@@ -148,6 +155,12 @@ def test_load_state_dict_with_params_overriding_integration():
         engine.run(data, epoch_length=90)
 
 
+def test_empty_state_dict_load_state_dict():
+    engine = Engine(lambda e, b: 1)
+    sd = engine.state_dict()
+    engine.load_state_dict(sd)
+
+
 def test_continue_training():
     # Tests issue : https://github.com/pytorch/ignite/issues/993
     max_epochs = 2
@@ -234,3 +247,23 @@ def test_epoch_length():
 
     _test_as_iter(data, 1, num_iters)
     _test_as_iter(data, 2, num_iters // 2)
+
+
+def test_state_custom_attrs_init():
+    def _test(with_load_state_dict=False):
+        engine = Engine(lambda e, b: None)
+        engine.state.alpha = 0.0
+        engine.state.beta = 1.0
+
+        if with_load_state_dict:
+            engine.load_state_dict({"iteration": 3, "max_epochs": 5, "epoch_length": 5})
+
+        @engine.on(Events.STARTED | Events.EPOCH_STARTED | Events.EPOCH_COMPLETED | Events.COMPLETED)
+        def check_custom_attr():
+            assert hasattr(engine.state, "alpha") and engine.state.alpha == 0.0
+            assert hasattr(engine.state, "beta") and engine.state.beta == 1.0
+
+        engine.run([0, 1, 2, 3, 4], max_epochs=5)
+
+    _test()
+    _test(with_load_state_dict=True)

pip install -e .
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc pip install torch torchvision -f https://download.pytorch.org/whl/cpu/torch_stable.html -U
3.7
requirements-dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
absl-py==2.1.0
alembic==1.12.1
arrow==1.2.3
attrs==24.2.0
boto3==1.33.13
botocore==1.33.13
bravado==11.1.0
bravado-core==6.1.1
cached-property==1.5.2
cachetools==5.5.2
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
click==7.1.2
cloudpickle==2.2.1
codecov==2.1.13
coverage==7.2.7
cycler==0.11.0
databricks-cli==0.18.0
dill==0.3.7
docker==6.1.3
entrypoints==0.4
exceptiongroup==1.2.2
execnet==2.0.2
Flask==1.1.4
fonttools==4.38.0
fqdn==1.5.1
funcsigs==1.0.2
furl==2.1.4
future==1.0.0
gitdb==4.0.12
GitPython==3.1.44
google-auth==2.38.0
google-auth-oauthlib==0.4.6
greenlet==3.1.1
grpcio==1.62.3
gunicorn==20.1.0
gym==0.26.2
gym-notices==0.0.8
hestia==0.6.0
humanfriendly==10.0
idna==3.10
importlib-metadata==5.2.0
importlib-resources==5.12.0
iniconfig==2.0.0
isoduration==20.11.0
itsdangerous==1.1.0
Jinja2==2.10.3
jmespath==1.0.1
joblib==1.3.2
jsonpatch==1.33
jsonpointer==3.0.0
jsonref==1.1.0
jsonschema==4.17.3
kiwisolver==1.4.5
Mako==1.2.4
Markdown==3.4.4
MarkupSafe==2.1.5
marshmallow==3.0.0rc5
matplotlib==3.5.3
mlflow==1.30.1
monotonic==1.6
msgpack==1.0.5
neptune-client==1.11.1
networkx==2.6.3
numpy==1.21.6
oauthlib==3.2.2
orderedmultidict==1.0.1
packaging==21.3
pandas==1.3.5
pathlib2==2.3.7.post1
Pillow==9.5.0
pkgutil_resolve_name==1.3.10
pluggy==1.2.0
polyaxon-client==0.6.1
polyaxon-schemas==0.6.1
polystores==0.2.5
prometheus-client==0.17.1
prometheus_flask_exporter==0.23.2
protobuf==3.20.3
psutil==7.0.0
pyasn1==0.5.1
pyasn1-modules==0.3.0
PyJWT==2.8.0
pynvml==11.5.3
pyparsing==3.1.4
pyrsistent==0.19.3
pytest==7.4.4
pytest-cov==4.1.0
pytest-xdist==3.5.0
python-dateutil==2.9.0.post0
-e git+https://github.com/pytorch/ignite.git@1cbfd72968e9e98ea3e8d6f2b93fbed2c3bb8de4#egg=pytorch_ignite
pytz==2022.7.1
PyYAML==6.0.1
querystring-parser==1.2.4
requests==2.31.0
requests-file==2.1.0
requests-oauthlib==2.0.0
requests-toolbelt==1.0.0
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rhea==0.5.5
rsa==4.9
s3transfer==0.8.2
scikit-learn==1.0.2
scipy==1.7.3
simplejson==3.20.1
six==1.17.0
smmap==5.0.2
SQLAlchemy==1.4.54
sqlparse==0.4.4
swagger-spec-validator==3.0.3
tabulate==0.9.0
tensorboard==2.11.2
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorboardX==2.6.2.2
threadpoolctl==3.1.0
tomli==2.0.1
torch==1.13.1+cpu
torchvision==0.14.1+cpu
tornado==6.2
tqdm==4.67.1
trains==0.16.4
typing_extensions==4.7.1
uri-template==1.3.0
urllib3==1.26.20
visdom==0.2.4
webcolors==1.13
websocket-client==1.6.1
Werkzeug==1.0.1
zipp==3.15.0

name: ignite
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - absl-py==2.1.0
      - alembic==1.12.1
      - arrow==1.2.3
      - attrs==24.2.0
      - boto3==1.33.13
      - botocore==1.33.13
      - bravado==11.1.0
      - bravado-core==6.1.1
      - cached-property==1.5.2
      - cachetools==5.5.2
      - charset-normalizer==3.4.1
      - click==7.1.2
      - cloudpickle==2.2.1
      - codecov==2.1.13
      - coverage==7.2.7
      - cycler==0.11.0
      - databricks-cli==0.18.0
      - dill==0.3.7
      - docker==6.1.3
      - entrypoints==0.4
      - exceptiongroup==1.2.2
      - execnet==2.0.2
      - flask==1.1.4
      - fonttools==4.38.0
      - fqdn==1.5.1
      - funcsigs==1.0.2
      - furl==2.1.4
      - future==1.0.0
      - gitdb==4.0.12
      - gitpython==3.1.44
      - google-auth==2.38.0
      - google-auth-oauthlib==0.4.6
      - greenlet==3.1.1
      - grpcio==1.62.3
      - gunicorn==20.1.0
      - gym==0.26.2
      - gym-notices==0.0.8
      - hestia==0.6.0
      - humanfriendly==10.0
      - idna==3.10
      - importlib-metadata==5.2.0
      - importlib-resources==5.12.0
      - iniconfig==2.0.0
      - isoduration==20.11.0
      - itsdangerous==1.1.0
      - jinja2==2.10.3
      - jmespath==1.0.1
      - joblib==1.3.2
      - jsonpatch==1.33
      - jsonpointer==3.0.0
      - jsonref==1.1.0
      - jsonschema==4.17.3
      - kiwisolver==1.4.5
      - mako==1.2.4
      - markdown==3.4.4
      - markupsafe==2.1.5
      - marshmallow==3.0.0rc5
      - matplotlib==3.5.3
      - mlflow==1.30.1
      - monotonic==1.6
      - msgpack==1.0.5
      - neptune-client==1.11.1
      - networkx==2.6.3
      - numpy==1.21.6
      - oauthlib==3.2.2
      - orderedmultidict==1.0.1
      - packaging==21.3
      - pandas==1.3.5
      - pathlib2==2.3.7.post1
      - pillow==9.5.0
      - pkgutil-resolve-name==1.3.10
      - pluggy==1.2.0
      - polyaxon-client==0.6.1
      - polyaxon-schemas==0.6.1
      - polystores==0.2.5
      - prometheus-client==0.17.1
      - prometheus-flask-exporter==0.23.2
      - protobuf==3.20.3
      - psutil==7.0.0
      - pyasn1==0.5.1
      - pyasn1-modules==0.3.0
      - pyjwt==2.8.0
      - pynvml==11.5.3
      - pyparsing==3.1.4
      - pyrsistent==0.19.3
      - pytest==7.4.4
      - pytest-cov==4.1.0
      - pytest-xdist==3.5.0
      - python-dateutil==2.9.0.post0
      - pytorch-ignite==0.4.0
      - pytz==2022.7.1
      - pyyaml==6.0.1
      - querystring-parser==1.2.4
      - requests==2.31.0
      - requests-file==2.1.0
      - requests-oauthlib==2.0.0
      - requests-toolbelt==1.0.0
      - rfc3339-validator==0.1.4
      - rfc3986-validator==0.1.1
      - rhea==0.5.5
      - rsa==4.9
      - s3transfer==0.8.2
      - scikit-learn==1.0.2
      - scipy==1.7.3
      - simplejson==3.20.1
      - six==1.17.0
      - smmap==5.0.2
      - sqlalchemy==1.4.54
      - sqlparse==0.4.4
      - swagger-spec-validator==3.0.3
      - tabulate==0.9.0
      - tensorboard==2.11.2
      - tensorboard-data-server==0.6.1
      - tensorboard-plugin-wit==1.8.1
      - tensorboardx==2.6.2.2
      - threadpoolctl==3.1.0
      - tomli==2.0.1
      - torch==1.13.1+cpu
      - torchvision==0.14.1+cpu
      - tornado==6.2
      - tqdm==4.67.1
      - trains==0.16.4
      - typing-extensions==4.7.1
      - uri-template==1.3.0
      - urllib3==1.26.20
      - visdom==0.2.4
      - webcolors==1.13
      - websocket-client==1.6.1
      - werkzeug==1.0.1
      - zipp==3.15.0
prefix: /opt/conda/envs/ignite

tests/ignite/engine/test_engine_state_dict.py::test_state_dict tests/ignite/engine/test_engine_state_dict.py::test_load_state_dict_asserts tests/ignite/engine/test_engine_state_dict.py::test_empty_state_dict_load_state_dict tests/ignite/engine/test_engine_state_dict.py::test_state_custom_attrs_init
tests/ignite/contrib/handlers/test_lr_finder.py::test_attach_incorrect_input_args tests/ignite/contrib/handlers/test_lr_finder.py::test_attach_without_with tests/ignite/contrib/handlers/test_lr_finder.py::test_with_attach tests/ignite/contrib/handlers/test_lr_finder.py::test_model_optimizer_reset tests/ignite/contrib/handlers/test_lr_finder.py::test_lr_policy tests/ignite/contrib/handlers/test_lr_finder.py::test_num_iter_is_none tests/ignite/contrib/handlers/test_lr_finder.py::test_num_iter_is_enough tests/ignite/contrib/handlers/test_lr_finder.py::test_num_iter_is_not_enough tests/ignite/contrib/handlers/test_lr_finder.py::test_detach_terminates tests/ignite/contrib/handlers/test_lr_finder.py::test_lr_suggestion tests/ignite/contrib/handlers/test_lr_finder.py::test_plot tests/ignite/contrib/handlers/test_lr_finder.py::test_no_matplotlib tests/ignite/contrib/handlers/test_param_scheduler.py::test_linear_scheduler tests/ignite/contrib/handlers/test_param_scheduler.py::test_linear_scheduler_cycle_size_two tests/ignite/contrib/handlers/test_param_scheduler.py::test_cosine_annealing_scheduler tests/ignite/contrib/handlers/test_param_scheduler.py::test_concat_scheduler_asserts tests/ignite/contrib/handlers/test_param_scheduler.py::test_concat_scheduler_state_dict tests/ignite/contrib/handlers/test_param_scheduler.py::test_concat_scheduler_two_schedulers tests/ignite/contrib/handlers/test_param_scheduler.py::test_concat_scheduler_two_linear tests/ignite/contrib/handlers/test_param_scheduler.py::test_concat_scheduler_3_schedulers tests/ignite/contrib/handlers/test_param_scheduler.py::test_save_param_history tests/ignite/contrib/handlers/test_param_scheduler.py::test_lr_scheduler_asserts tests/ignite/contrib/handlers/test_param_scheduler.py::test_lr_scheduler tests/ignite/contrib/handlers/test_param_scheduler.py::test_piecewiselinear_asserts tests/ignite/contrib/handlers/test_param_scheduler.py::test_piecewiselinear tests/ignite/contrib/handlers/test_param_scheduler.py::test_simulate_and_plot_values tests/ignite/contrib/handlers/test_param_scheduler.py::test_create_lr_scheduler_with_warmup tests/ignite/contrib/handlers/test_param_scheduler.py::test_create_lr_scheduler_with_warmup_on_combined_scheduler tests/ignite/contrib/handlers/test_param_scheduler.py::test_create_lr_scheduler_with_warmup_with_real_model tests/ignite/contrib/handlers/test_param_scheduler.py::test_param_group_scheduler_asserts tests/ignite/contrib/handlers/test_param_scheduler.py::test_param_group_scheduler tests/ignite/engine/test_engine_state_dict.py::test_state_dict_with_user_keys tests/ignite/engine/test_engine_state_dict.py::test_state_dict_integration tests/ignite/engine/test_engine_state_dict.py::test_load_state_dict tests/ignite/engine/test_engine_state_dict.py::test_load_state_dict_with_user_keys tests/ignite/engine/test_engine_state_dict.py::test_load_state_dict_integration tests/ignite/engine/test_engine_state_dict.py::test_load_state_dict_with_params_overriding_integration tests/ignite/engine/test_engine_state_dict.py::test_continue_training tests/ignite/engine/test_engine_state_dict.py::test_state_dict_with_user_keys_integration tests/ignite/engine/test_engine_state_dict.py::test_epoch_length
ignite/contrib/handlers/param_scheduler.py ignite/engine/engine.py ignite/engine/events.py ignite/contrib/handlers/lr_finder.py
ignite/contrib/handlers/param_scheduler.py ignite/engine/engine.py ignite/engine/events.py ignite/contrib/handlers/lr_finder.py