pytorch-ignite 0.6.0.dev20251204__py3-none-any.whl → 0.6.0.dev20251206__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ignite/__init__.py +1 -1
- ignite/handlers/wandb_logger.py +9 -8
- {pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/METADATA +1 -1
- {pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/RECORD +6 -6
- {pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/WHEEL +0 -0
- {pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/licenses/LICENSE +0 -0
ignite/__init__.py
CHANGED
ignite/handlers/wandb_logger.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""WandB logger and its helper handlers."""
|
|
2
2
|
|
|
3
3
|
from typing import Any, Callable, List, Optional, Union
|
|
4
|
+
from warnings import warn
|
|
4
5
|
|
|
5
6
|
from torch.optim import Optimizer
|
|
6
7
|
|
|
@@ -172,8 +173,7 @@ class OutputHandler(BaseOutputHandler):
|
|
|
172
173
|
Default is None, global_step based on attached engine. If provided,
|
|
173
174
|
uses function output as global_step. To setup global step from another engine, please use
|
|
174
175
|
:meth:`~ignite.handlers.wandb_logger.global_step_from_engine`.
|
|
175
|
-
sync:
|
|
176
|
-
the default value of wandb.log.
|
|
176
|
+
sync: Deprecated, has no function. Argument is kept here for compatibility with existing code.
|
|
177
177
|
|
|
178
178
|
Examples:
|
|
179
179
|
.. code-block:: python
|
|
@@ -284,7 +284,8 @@ class OutputHandler(BaseOutputHandler):
|
|
|
284
284
|
state_attributes: Optional[List[str]] = None,
|
|
285
285
|
):
|
|
286
286
|
super().__init__(tag, metric_names, output_transform, global_step_transform, state_attributes)
|
|
287
|
-
|
|
287
|
+
if sync is not None:
|
|
288
|
+
warn("The sync argument for the WandBLoggers is no longer used, and may be removed in the future")
|
|
288
289
|
|
|
289
290
|
def __call__(self, engine: Engine, logger: WandBLogger, event_name: Union[str, Events]) -> None:
|
|
290
291
|
if not isinstance(logger, WandBLogger):
|
|
@@ -298,7 +299,7 @@ class OutputHandler(BaseOutputHandler):
|
|
|
298
299
|
)
|
|
299
300
|
|
|
300
301
|
metrics = self._setup_output_metrics_state_attrs(engine, log_text=True, key_tuple=False)
|
|
301
|
-
logger.log(metrics, step=global_step
|
|
302
|
+
logger.log(metrics, step=global_step)
|
|
302
303
|
|
|
303
304
|
|
|
304
305
|
class OptimizerParamsHandler(BaseOptimizerParamsHandler):
|
|
@@ -309,8 +310,7 @@ class OptimizerParamsHandler(BaseOptimizerParamsHandler):
|
|
|
309
310
|
as a sequence.
|
|
310
311
|
param_name: parameter name
|
|
311
312
|
tag: common title for all produced plots. For example, "generator"
|
|
312
|
-
sync:
|
|
313
|
-
the default value of wandb.log.
|
|
313
|
+
sync: Deprecated, has no function. Argument is kept here for compatibility with existing code.
|
|
314
314
|
|
|
315
315
|
Examples:
|
|
316
316
|
.. code-block:: python
|
|
@@ -346,7 +346,8 @@ class OptimizerParamsHandler(BaseOptimizerParamsHandler):
|
|
|
346
346
|
self, optimizer: Optimizer, param_name: str = "lr", tag: Optional[str] = None, sync: Optional[bool] = None
|
|
347
347
|
):
|
|
348
348
|
super(OptimizerParamsHandler, self).__init__(optimizer, param_name, tag)
|
|
349
|
-
|
|
349
|
+
if sync is not None:
|
|
350
|
+
warn("The sync argument for the WandBLoggers is no longer used, and may be removed in the future")
|
|
350
351
|
|
|
351
352
|
def __call__(self, engine: Engine, logger: WandBLogger, event_name: Union[str, Events]) -> None:
|
|
352
353
|
if not isinstance(logger, WandBLogger):
|
|
@@ -358,4 +359,4 @@ class OptimizerParamsHandler(BaseOptimizerParamsHandler):
|
|
|
358
359
|
f"{tag_prefix}{self.param_name}/group_{i}": float(param_group[self.param_name])
|
|
359
360
|
for i, param_group in enumerate(self.optimizer.param_groups)
|
|
360
361
|
}
|
|
361
|
-
logger.log(params, step=global_step
|
|
362
|
+
logger.log(params, step=global_step)
|
{pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytorch-ignite
|
|
3
|
-
Version: 0.6.0.
|
|
3
|
+
Version: 0.6.0.dev20251206
|
|
4
4
|
Summary: A lightweight library to help with training neural networks in PyTorch.
|
|
5
5
|
Project-URL: Homepage, https://pytorch-ignite.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/pytorch/ignite
|
{pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ignite/__init__.py,sha256=
|
|
1
|
+
ignite/__init__.py,sha256=AP_339IUrYTCQramPmfdDkGF8_A-4cRjktbcqcGVKBQ,194
|
|
2
2
|
ignite/_utils.py,sha256=XDPpUDJ8ykLXWMV2AYTqGSj8XCfApsyzsQ3Vij_OB4M,182
|
|
3
3
|
ignite/exceptions.py,sha256=5ZWCVLPC9rgoW8t84D-VeEleqz5O7XpAGPpCdU8rKd0,150
|
|
4
4
|
ignite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -81,7 +81,7 @@ ignite/handlers/timing.py,sha256=nHeBHvPwYdPRMAx-jk_8MjZit4a7rmsmIWkUrajAG-s,470
|
|
|
81
81
|
ignite/handlers/tqdm_logger.py,sha256=5N70XA9rRm2x6sWYAJB1U5Y_bky2fa3qhec8SVgB3hY,13049
|
|
82
82
|
ignite/handlers/utils.py,sha256=X4LRqo1kqGsbmX0pEuZKYR6K4C8sZudAqxCLriiXtCg,872
|
|
83
83
|
ignite/handlers/visdom_logger.py,sha256=sg75ohEkDT7gYfEbLn5464GO-s0MLUEWxdFw_zSVSYw,21830
|
|
84
|
-
ignite/handlers/wandb_logger.py,sha256=
|
|
84
|
+
ignite/handlers/wandb_logger.py,sha256=vGok3gADQmTNkc6KkfFBreYoHAO8EneuU65xjBpT5-Q,14837
|
|
85
85
|
ignite/metrics/__init__.py,sha256=m-8F8J17r-aEwsO6Ww-8AqDRN59WFfYBwCDKwqGDSmI,3627
|
|
86
86
|
ignite/metrics/accumulation.py,sha256=xWdsm9u6JfsfODX_GUKzQc_omrdFDJ4yELBR-xXgc4s,12448
|
|
87
87
|
ignite/metrics/accuracy.py,sha256=rI1TG-7WdJxcqGCMxGErXBWLmTNP1yczJgjjRyby0No,10168
|
|
@@ -153,7 +153,7 @@ ignite/metrics/regression/spearman_correlation.py,sha256=IzmN4WIe7C4cTUU3BOkBmaw
|
|
|
153
153
|
ignite/metrics/regression/wave_hedges_distance.py,sha256=Ji_NRUgnZ3lJgi5fyNFLRjbHO648z4dBmqVDQU9ImKA,2792
|
|
154
154
|
ignite/metrics/vision/__init__.py,sha256=lPBAEq1idc6Q17poFm1SjttE27irHF1-uNeiwrxnLrU,159
|
|
155
155
|
ignite/metrics/vision/object_detection_average_precision_recall.py,sha256=PwdXVeGAF0sLIxUrvnnE7ZojpFNkZB5O6bYoopqc3M4,25024
|
|
156
|
-
pytorch_ignite-0.6.0.
|
|
157
|
-
pytorch_ignite-0.6.0.
|
|
158
|
-
pytorch_ignite-0.6.0.
|
|
159
|
-
pytorch_ignite-0.6.0.
|
|
156
|
+
pytorch_ignite-0.6.0.dev20251206.dist-info/METADATA,sha256=r00UW8nr0YSk5XBY4rwGNYeVP-6QEreukKmwZeaEJgk,27979
|
|
157
|
+
pytorch_ignite-0.6.0.dev20251206.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
158
|
+
pytorch_ignite-0.6.0.dev20251206.dist-info/licenses/LICENSE,sha256=SwJvaRmy1ql-k9_nL4WnER4_ODTMF9fWoP9HXkoicgw,1527
|
|
159
|
+
pytorch_ignite-0.6.0.dev20251206.dist-info/RECORD,,
|
{pytorch_ignite-0.6.0.dev20251204.dist-info → pytorch_ignite-0.6.0.dev20251206.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|