Skip to content

Commit a849a3a

Browse files
authored
Merge pull request #574 from GiuseTripodi/fix_model_summary_reset_device_#542
Fix: Preserve model device in model_summary method
2 parents 7c8805c + 74ee3cf commit a849a3a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ The following table shows which versions of MapReader are compatible with which
1414
## Pre-release
1515
_Add new changes here_
1616

17+
### Fixed
18+
19+
- Fixes the `model_summary` method in the `ClassifierContainer` class ([#574](https://github.com/maps-as-data/MapReader/pull/574))
20+
1721
## [v1.8.2](https://github.com/Living-with-machines/MapReader/releases/tag/v1.8.2) (2025-12-19)
1822

1923
### Added

mapreader/classify/classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def model_summary(
565565
col_names = ["output_size", "output_size", "num_params"]
566566

567567
model_summary = summary(
568-
self.model, input_size=input_size, col_names=col_names, **kwargs
568+
self.model, input_size=input_size, col_names=col_names, device=self.device, **kwargs
569569
)
570570
print(model_summary)
571571

0 commit comments

Comments
 (0)