Skip to content

Commit

Permalink
Fixing inplace operation error (#37)
Browse files Browse the repository at this point in the history
* Update decoding.py

* Update encoding.py
  • Loading branch information
jdollinger-bit committed Jul 30, 2023
1 parent 6d3f74b commit caace5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unet/decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def forward(self, skip_connection, x):
connection = self.conv_residual(x)
x = self.conv1(x)
x = self.conv2(x)
x += connection
x = x + connection
else:
x = self.conv1(x)
x = self.conv2(x)
Expand Down
2 changes: 1 addition & 1 deletion unet/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def forward(self, x):
connection = self.conv_residual(x)
x = self.conv1(x)
x = self.conv2(x)
x += connection
x = x + connection
else:
x = self.conv1(x)
x = self.conv2(x)
Expand Down

0 comments on commit caace5c

Please sign in to comment.