File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
- Support ` fit_partial() ` for LightFM ([ #223 ] ( https://github.com/MobileTeleSystems/RecTools/pull/223 ) )
23
23
- LightFM Python 3.12+ support ([ #224 ] ( https://github.com/MobileTeleSystems/RecTools/pull/224 ) )
24
24
25
+ ### Fixed
26
+ - Fix Implicit ALS matrix zero assignment size ([ #228 ] ( https://github.com/MobileTeleSystems/RecTools/pull/228 ) )
27
+
25
28
### Removed
26
29
- Python 3.8 support ([ #222 ] ( https://github.com/MobileTeleSystems/RecTools/pull/222 ) )
27
30
Original file line number Diff line number Diff line change @@ -610,8 +610,8 @@ def _fit_combined_factors_on_gpu_inplace(
610
610
model ._item_norms_host = model ._user_norms_host = None # pylint: disable=protected-access
611
611
model ._YtY = model ._XtX = None # pylint: disable=protected-access
612
612
613
- _YtY = implicit .gpu .Matrix .zeros (model . factors , model . factors )
614
- _XtX = implicit .gpu .Matrix .zeros (model . factors , model . factors )
613
+ _YtY = implicit .gpu .Matrix .zeros (* item_factors . shape )
614
+ _XtX = implicit .gpu .Matrix .zeros (* user_factors . shape )
615
615
616
616
for _ in tqdm (range (iterations ), disable = verbose == 0 ):
617
617
You can’t perform that action at this time.
0 commit comments