fde2f66676f960782c993f7148927c4a4197ab10,spotlight/factorization/explicit.py,ExplicitFactorizationModel,fit,#ExplicitFactorizationModel#Any#Any#,85

Before Change


                self._use_cuda
            )
        else:
            self._net = gpu(
                TruncatedBilinearNet(self._num_users,
                                     self._num_items,
                                     self._embedding_dim,
                                     sparse=self._sparse),
                self._use_cuda
            )

        if self._optimizer is None:
            self._optimizer = optim.Adam(self._net.parameters())

After Change


                                  self._use_cuda)
            item_ids_tensor = gpu(torch.from_numpy(items),
                                  self._use_cuda)
            ratings_tensor = gpu(torch.from_numpy(ratings),
                                 self._use_cuda)

            epoch_loss = 0.0

            for (batch_user,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: maciejkula/spotlight
Commit Name: fde2f66676f960782c993f7148927c4a4197ab10
Time: 2017-06-27
Author: maciej.kula@gmail.com
File Name: spotlight/factorization/explicit.py
Class Name: ExplicitFactorizationModel
Method Name: fit


Project Name: apache/incubator-tvm
Commit Name: 80ca598e271c1a93eadc26e31e5bef00b8d86899
Time: 2020-11-09
Author: eun.taik.lee@samsung.com
File Name: python/tvm/driver/tvmc/runner.py
Class Name:
Method Name: run_module


Project Name: apache/incubator-mxnet
Commit Name: 2c02bfffb2bdb4e8f1e5159e08e3250482e5f603
Time: 2019-11-12
Author: dcarter@nvidia.com
File Name: tests/python/gpu/test_fusion.py
Class Name:
Method Name: check_fused_symbol


Project Name: mahyarnajibi/SNIPER
Commit Name: be290b8faff24a8edf194e0879d6f20e927f8bad
Time: 2018-01-14
Author: mahyarnajibi@gmail.com
File Name: main.py
Class Name:
Method Name: