(self, rhs)
| 671 | ''' |
| 672 | |
| 673 | def __add__(self, rhs): |
| 674 | if isinstance(rhs, Tensor): |
| 675 | return from_raw_tensor(singa.__add__(self.data, rhs.data)) |
| 676 | else: |
| 677 | return _call_singa_func(singa.AddFloat, self.data, float(rhs)) |
| 678 | |
| 679 | def __sub__(self, rhs): |
| 680 | if isinstance(rhs, Tensor): |