Skip to content

Commit 6b93e33

Browse files
authored
Use math.prod
1 parent 14eae21 commit 6b93e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tltorch/functional/tests/test_factorized_linear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import tensorly as tl
66
tl.set_backend('pytorch')
77
from tensorly import testing
8-
from tensorly.utils import prod
8+
from math import prod
99

1010
import pytest
1111

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

0 commit comments

Comments
 (0)