skip over irrelevant nodes
This commit is contained in:
parent
dcbaef3032
commit
65ba80bb96
1 changed files with 10 additions and 10 deletions
|
@ -589,7 +589,7 @@ class Layer:
|
|||
assert self.parents, self
|
||||
edges = []
|
||||
for parent in self.parents:
|
||||
# TODO: skip over irrelevant nodes (if any)
|
||||
if parent in values:
|
||||
X = values[parent]
|
||||
if not self.unsafe:
|
||||
self.validate_input(X)
|
||||
|
@ -604,7 +604,7 @@ class Layer:
|
|||
assert self.children, self
|
||||
edges = []
|
||||
for child in self.children:
|
||||
# TODO: skip over irrelevant nodes (if any)
|
||||
if child in values:
|
||||
dY = values[child]
|
||||
if not self.unsafe:
|
||||
self.validate_output(dY)
|
||||
|
|
Loading…
Reference in a new issue