@@ -15,7 +15,7 @@ def add(value_1 : Tensor, value_2 : Tensor) -> Tensor:
15
15
Returns:
16
16
Tensor: A tensor that is the element-wise sum of value_1 and value_2
17
17
"""
18
- from .tensor2 import add as _add
18
+ from .. tensor2 import add as _add
19
19
return _add (value_1 , value_2 )
20
20
21
21
def divide (value_1 : Tensor , value_2 : Tensor ) -> Tensor :
@@ -27,7 +27,7 @@ def divide(value_1 : Tensor, value_2 : Tensor) -> Tensor:
27
27
Returns:
28
28
Tensor: A tensor that is the element-wise division of value_1 by value_2
29
29
"""
30
- from .tensor2 import divide as _divide
30
+ from .. tensor2 import divide as _divide
31
31
return _divide (value_1 , value_2 )
32
32
33
33
def multiply (value_1 : Tensor , value_2 : Tensor ) -> Tensor :
@@ -39,7 +39,7 @@ def multiply(value_1 : Tensor, value_2 : Tensor) -> Tensor:
39
39
Returns:
40
40
Tensor: A tensor that is the element-wise product of value_1 and value_2
41
41
"""
42
- from .tensor2 import multiply as _multiply
42
+ from .. tensor2 import multiply as _multiply
43
43
return _multiply (value_1 , value_2 )
44
44
45
45
def power (value_1 : Tensor , value_2 : Tensor ) -> Tensor :
@@ -51,7 +51,7 @@ def power(value_1 : Tensor, value_2 : Tensor) -> Tensor:
51
51
Returns:
52
52
Tensor: A tensor that is the element-wise result of value_1 raised to the power of value_2
53
53
"""
54
- from .tensor2 import power as _power
54
+ from .. tensor2 import power as _power
55
55
return _power (value_1 , value_2 )
56
56
57
57
def matmul (value_1 : Tensor , value_2 : Tensor ) -> Tensor :
@@ -63,7 +63,7 @@ def matmul(value_1 : Tensor, value_2 : Tensor) -> Tensor:
63
63
Returns:
64
64
Tensor: A tensor that is the result of matrix multiplication between value_1 and value_2
65
65
"""
66
- from .._ext . tensor2 import matmul as _matmul
66
+ from ..tensor2 import matmul as _matmul
67
67
return _matmul (value_1 , value_2 )
68
68
69
69
def condition (condition_value : Tensor , value_if_true : Tensor , value_if_false : Tensor ) -> Tensor :
@@ -76,5 +76,5 @@ def condition(condition_value : Tensor, value_if_true : Tensor, value_if_false :
76
76
Returns:
77
77
Tensor: A tensor that is either value_if_true or value_if_false, depending on the condition.
78
78
"""
79
- from .._ext . tensor2 import condition as _condition
79
+ from ..tensor2 import condition as _condition
80
80
return _condition (condition_value , value_if_true , value_if_false )
0 commit comments