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

Setting bias to False #3

Closed samlobel closed 7 years ago

samlobel commented 7 years ago

I could be misunderstanding this one, but does line 117 of sg_main mean that bias is always determined by either opt.bn or opt.ln? Is there a way to determine it explicitly?

buriburisuri commented 7 years ago

You can always determine explicitly.

opt += tf.sg_opt(bias=not (opt.bn or opt.ln))

'+=' operator in this line means default option injection. If you provide bn or ln option, that will be used. If not provided, this option will be used as defaults.

see https://github.com/buriburisuri/sugartensor/blob/master/sugartensor/sg_util.py.

Sorry again for the lack of document

samlobel commented 7 years ago

Okay, so you can explicitly set bias to False, correct? Thank you again.