Output tensors to a Model must be the output of a TensorFlow Layer
等问题记录
Error: Output tensors to a Model must be the output of a TensorFlow Layer
reasons: tf.keras network configured to use a non-network layer keras
Solution: Use tf.keras alternative network layer, or the write function operation, then tf.keras.layer.Lambda layer structure
Function: compute_output_shape (self, input_shape):
action: keras uncertainty is used to calculate the shape of the output of the shape of the output
Tip:
The tensorflow of Dimension becomes int type of method
Diem.values
tensor_shape [0] .Value
tensorflow.contrib.framework.sort in tensorflow2 which is tensorflow.sort