The document of under url has a typo.
Since the method name is compute_output_shape
, Returns should be an output shape tuple, not an input shape tuple. If it returns input shape tuple, then it returns what it got as argument.
The document of under url has a typo.
Since the method name is compute_output_shape
, Returns should be an output shape tuple, not an input shape tuple. If it returns input shape tuple, then it returns what it got as argument.
Thank you for reporting the issue. I submitted PR to fix the issue.
The above PR was successfully merged.
Please refer to the updated Returns
section as shown below
Returns:
A `tf.TensorShape` instance
or structure of `tf.TensorShape` instances.
For more details please refer https://github.com/keras-team/keras/blob/master/keras/engine/base_layer.py#L832-L848. Thank you