recommenders
recommenders copied to clipboard
ValueError: Shape must be rank 2 but is rank 3
ValueError: Shape must be rank 2 but is rank 3 for '{{node concat}} = ConcatV2[N=2, T=DT_FLOAT, Tidx=DT_INT32](args_0, args_2, concat/axis)' with input shapes: [128,0], [?,128,100], [].
ValueError: Shape must be rank 2 but is rank 3 for '{{node concat}} = ConcatV2[N=2, T=DT_FLOAT, Tidx=DT_INT32](args_0, args_2, concat/axis)' with input shapes: [128,0], [?,128,100], [].
Hello @yunruili ! It's hard to guess without seeing your code...
Thats sounds to me that you need to add tf.keras.layers.GlobalAveragePooling1D() to one of your models. Usually after create an embeeding coming from a TextVectorization layer.