Element-Research / dpnn

deep extensions to nn
BSD 3-Clause "New" or "Revised" License
194 stars 82 forks source link

Allow user to specify a custom cloning function when using sharedClone #72

Closed albanD closed 8 years ago

albanD commented 8 years ago

This allow the user to specify a custom sharedClone function for a module as dpnn_sharedClone.

This is needed if the sharing between some of the submodules is more complex than just using the same tensor.

nicholas-leonard commented 8 years ago

@albanD Thanks, that will come in handy.