Skip to content

Commit

Permalink
fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
jxbz committed Apr 5, 2024
1 parent f3f0ca6 commit 07a5cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def __pow__(self, other):
a = Vector((a,b))
a = Vector((a,a))

print(a) # 2
print(a + (a*2)**3 - 3*a) # 60
print(a) # 2
print(a + (a*2)**3 - 3*a) # 60
print(1/a) # 1/2
print(a/a) # 1
print(a-a) # 0
Expand All @@ -145,4 +145,4 @@ def __pow__(self, other):
with torch.no_grad():
a -= a/2

print(a) # 1, requires_grad=True
print(a) # 1, requires_grad=True

0 comments on commit 07a5cbe

Please sign in to comment.