Skip to content

Instantly share code, notes, and snippets.

@jknthn
Created September 26, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jknthn/c162aa6e00195532baeb72d3b2e1d671 to your computer and use it in GitHub Desktop.
Save jknthn/c162aa6e00195532baeb72d3b2e1d671 to your computer and use it in GitHub Desktop.
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