buriburisuri / sugartensor

A slim tensorflow wrapper that provides syntactic sugar for tensor variables. This library will be helpful for practical deep learning researchers not beginners.
MIT License
372 stars 63 forks source link

Adding Custom layers #7

Closed aosokin closed 7 years ago

aosokin commented 7 years ago

Hi, this is a really amazing repo! My question is again about custom layers. What is the best way to add them?

buriburisuri commented 7 years ago

See issue #2

aosokin commented 7 years ago

As far as I under stand the by_pass layer that you are referencing is a part of sugartensor itself. My question is a bit different: is there a way of adding a custom layer without touching the sugartensor code (say in file of my own script that imports sugartensor)?

buriburisuri commented 7 years ago

See the bytenet code example from the link in issue #2

aosokin commented 7 years ago

Works great! Thanks a lot!