I am studying Tensorflow BasicLSTMCell while I found that there are two similar methods within the class: __call__
and call
. The two methods has the same parameters and the documentation does not say the difference. Refering the source code does not give me any clue of this. But I am guessing that the the __call__
method is inherited from somewhere, and call
overrides __call__
. If this is the case, why not just use __call__
instead of call
in the source code?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I ran into similar problem when studying RNNCell.
It is in Class Layer in base_layer.py that __call__ wraps in call, "applying pre- and post-processing steps".