예제 #1
0
 def mul_(self, other):
     torch._bop(self, other)
     return self
예제 #2
0
 def sub_(self, other):
     torch._bop(self, other)
     return self
예제 #3
0
 def mul(self, other):
     return torch._bop(self, other)
예제 #4
0
 def add_(self, other):
     torch._bop(self, other)
     return self
예제 #5
0
 def sub(self, other):
     return torch._bop(self, other)
예제 #6
0
파일: tensor.py 프로젝트: ropas/pytea
 def __pow__(self, other):
     return torch._bop(self, other)
예제 #7
0
 def add(self, other):
     return torch._bop(self, other)
예제 #8
0
 def __rmul__(self, other):
     return torch._bop(self, other)
예제 #9
0
 def __rtruediv__(self, other):
     return torch._bop(self, other)
예제 #10
0
 def __radd__(self, other):
     return torch._bop(self, other)
예제 #11
0
 def __rsub__(self, other):
     return torch._bop(self, other)
예제 #12
0
파일: tensor.py 프로젝트: ropas/pytea
 def pow_(self, other):
     torch._bop(self, other)
     return self
예제 #13
0
파일: tensor.py 프로젝트: ropas/pytea
 def pow(self, exponent):
     return torch._bop(self, exponent)
예제 #14
0
파일: tensor.py 프로젝트: ropas/pytea
 def __ne__(self, other):
     tensor = torch._bop(self, other)
     tensor.dtype = torch.bool
     return tensor
예제 #15
0
 def div(self, other):
     return torch._bop(self, other)
예제 #16
0
 def __rfloordiv__(self, other):
     return torch._bop(self, other)
예제 #17
0
 def div_(self, other):
     torch._bop(self, other)
     return self
예제 #18
0
파일: tensor.py 프로젝트: ropas/pytea
 def eq(self, other):
     return torch._bop(self, other)