Created
September 26, 2017 07:15
-
-
Save jknthn/c162aa6e00195532baeb72d3b2e1d671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Layer { | |
let size: Int | |
let activation: Activation | |
init(size: Int, activation: Activation) { | |
self.size = size | |
self.activation = activation | |
} | |
static func input(size: Int) -> Layer { | |
return Layer(size: size, activation: .none) | |
} | |
static func fullyConnected(size: Int, activation: Activation) -> Layer { | |
return Layer(size: size, activation: activation) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment