File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -375,17 +375,12 @@ def __gt__(self, other):
375
375
def __ge__ (self , other ):
376
376
return ge (self , other )
377
377
378
- def __dot__ (left , right ):
379
- return structured_dot (left , right )
380
-
381
- def __rdot__ (right , left ):
382
- return structured_dot (left , right )
378
+ def dot (self , other ):
379
+ return structured_dot (self , other )
383
380
384
381
def sum (self , axis = None , sparse_grad = False ):
385
382
return sp_sum (self , axis = axis , sparse_grad = sparse_grad )
386
383
387
- dot = __dot__
388
-
389
384
def toarray (self ):
390
385
return dense_from_sparse (self )
391
386
Original file line number Diff line number Diff line change @@ -640,13 +640,8 @@ def dtype(self):
640
640
"""The dtype of this tensor."""
641
641
return self .type .dtype
642
642
643
- def __dot__ (left , right ):
644
- return at .math .dense_dot (left , right )
645
-
646
- def __rdot__ (right , left ):
647
- return at .math .dense_dot (left , right )
648
-
649
- dot = __dot__
643
+ def dot (self , other ):
644
+ return at .math_dense_dot (self , other )
650
645
651
646
def __matmul__ (left , right ):
652
647
return at .math .matmul (left , right )
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def test_numpy_method(fct, value):
75
75
utt .assert_allclose (np .nan_to_num (f (value )), np .nan_to_num (fct (value )))
76
76
77
77
78
- def test_infix_dot_method ():
78
+ def test_dot_method ():
79
79
X = dmatrix ("X" )
80
80
y = dvector ("y" )
81
81
You can’t perform that action at this time.
0 commit comments