Last active
August 3, 2017 06:48
Star
You must be signed in to star a gist
Handy bits of BrainScript code
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
# A constant 1D tensor that contains an enumeration 0 .. (count - 1). | |
Range(count) = Splice( array [0..(count-1)] ( i => Constant{i} ) ) | |
# residual units | |
ResNet(InnerDim, OuterDim, INNODE) = { | |
L1 = DenseLayer {InnerDim, activation = ReLU, init = "gaussian"}( INNODE ) | |
L2 = DenseLayer {OuterDim, activation = Pass, init = "gaussian"}( L1 ) | |
ResUnit = ReLU(Plus(INNODE, L2)) | |
}.ResUnit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment