remove dead line and punctuate comment

This commit is contained in:
Connor Olding 2017-06-30 21:13:37 +00:00
parent a4c1c5c04c
commit a7c4bdaa2e
2 changed files with 1 additions and 2 deletions

2
onn.py
View file

@ -43,7 +43,7 @@ class SquaredHalved(ResidualLoss):
return r return r
class SomethingElse(ResidualLoss): class SomethingElse(ResidualLoss):
# generalizes Absolute and SquaredHalved # generalizes Absolute and SquaredHalved.
# plot: https://www.desmos.com/calculator/fagjg9vuz7 # plot: https://www.desmos.com/calculator/fagjg9vuz7
def __init__(self, a=4/3): def __init__(self, a=4/3):
assert 1 <= a <= 2, "parameter out of range" assert 1 <= a <= 2, "parameter out of range"

View file

@ -734,7 +734,6 @@ class Model:
offset = 0 offset = 0
for node in self.ordered_nodes: for node in self.ordered_nodes:
if node.size > 0: if node.size > 0:
end = offset + node.size
inner_offset = 0 inner_offset = 0
def allocate(size): def allocate(size):