Skip to content

Commit

Permalink
Use math.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanKossaifi authored Jun 7, 2024
1 parent 14eae21 commit 6b93e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tltorch/functional/tests/test_factorized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import tensorly as tl
tl.set_backend('pytorch')
from tensorly import testing
from tensorly.utils import prod
from math import prod

import pytest

Expand All @@ -30,4 +30,4 @@ def test_linear_tensor_dot_tucker(factorization, factorized_linear):
res = factorized_linear(tensor, fact_weight, transpose=True)
res = res.reshape(batch_size, -1)
testing.assert_array_almost_equal(true_res, res, decimal=5)


0 comments on commit 6b93e33

Please sign in to comment.