I don't understand how to specify the output_shape
parameter in the Lambda
layer in Keras/Tensorflow. The documentation says:
output_shape: Expected output shape from function. This argument can be inferred if not explicitly provided. Can be a tuple or function. If a tuple, it only specifies the first dimension onward; sample dimension is assumed either the same as the input:
output_shape = (input_shape[0], ) + output_shape
or, the input isNone
and the sample dimension is alsoNone
:output_shape = (None, ) + output_shape
If we use a tuple how should I interpret these two expressions?
output_shape = (input_shape[0], ) + output_shape
and
output_shape = (None, ) + output_shape