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?
相关问题
- batch_dot with variable batch size in Keras
- How to use Reshape keras layer with two None dimen
- CV2 Image Error: error: (-215:Assertion failed) !s
- Why keras use “call” instead of __call__?
- How to conditionally scale values in Keras Lambda
相关文章
- tensorflow 神经网络 训练集准确度远高于验证集和测试集准确度?
- Tensorflow: device CUDA:0 not supported by XLA ser
- Numpy array to TFrecord
- conditional graph in tensorflow and for loop that
- How to downgrade to cuda 10.0 in arch linux?
- Apply TensorFlow Transform to transform/scale feat
- How to force tensorflow tensors to be symmetric?
- keras model subclassing examples
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".