(self, other: Variable)
| 99 | return result |
| 100 | |
| 101 | def __matmul__(self, other: Variable) -> Variable: |
| 102 | result = Variable(self.value @ other.value) |
| 103 | |
| 104 | with GradientTracker() as tracker: |
| 105 | # if tracker is enabled, computation graph will be updated |
| 106 | if tracker.enabled: |
| 107 | tracker.append(OpType.MATMUL, params=[self, other], output=result) |
| 108 | return result |
| 109 | |
| 110 | def __pow__(self, power: int) -> Variable: |
| 111 | result = Variable(self.value**power) |
nothing calls this directly
no test coverage detected