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

optional summary #22

Closed AndreasMadsen closed 7 years ago

AndreasMadsen commented 7 years ago

This makes it possible to disable summaries in a sg_context scope using with sg_context(summary=False).

The motivation for this is that I otherwise end up having 1000+ summaries, it takes a long time load in tensorboard and I can't open the taps anyway as the browser will just freeze.


In order to implement this, a sg_summary_func decorator similar to sg_sugar_func and sg_layer_func was added. This decorator simplifies the summary implementations quite a lot and allows sg_context to affect the summary functions.

Unfortunately, this introduces a two small API change.

buriburisuri commented 7 years ago

@AndreasMadsen Thanks for your contribution. I've updated my repo as your guide. Thank you again.