Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 625 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 625 Bytes
  • Proof of concept with unit tests
  • Does not handle batchnorm cases yet
n2n = require 'net2net'

-- net  = network
-- pos1 = position at which one has to widen the output
-- pos2 = position at which the next weight layer is present
-- newWidth   = new width of the layer
n2n.wider(net, pos1, pos2, newWidth)

-- pos = position at which the layer has to be deepened
-- nonlin = type of non-linearity to insert
n2n.deeper(net, pos, nonlin)

Example usage in test.lua