-
-
Notifications
You must be signed in to change notification settings - Fork 90
More refactoring #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
More refactoring #92
Conversation
* removed one import prematurely
I think you need to rebase with master to view it accordingly. |
|
@adamnemecek is this ready to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing @adamnemecek
| func addNeuronIfThere(node: TFNode) { | ||
| let outgoing = node.outgoingNodes() | ||
| if outgoing.count == 1, let next = (outgoing.first as? TFNode), | ||
| if let next = (outgoing.first as? TFNode), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't want to remove this check. There could be more than one outgoingNodes
| assert(inputNodes.count == startNodes.count, "Number of network inputs(\(inputNodes.count)) and input sizes(\(startNodes.count)) are not equal") | ||
| if inputNodes.count == 1 { | ||
| inputNodes[0].addIncomingEdge(from: startNodes[0]) | ||
| if let first = inputNodes.first { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. If there are many inputNodes we want to go into the else
|
Hey, we have run the Swiftlint autocorrect and have added it to the CI check. Can you rebase your changes? |
Im not sure why it shows all the commits, the real changes start with "trimmed whitespace" (including that one)