non-broadcastable output operand with shape (10,1) doesn't match the broadcast shape (10,29)
时间: 2024-06-06 19:06:46 浏览: 17
This error message suggests that there is an issue with the shapes of the arrays being used in a broadcast operation. Specifically, there is a mismatch between the shape of the output array and the shape that is being broadcasted.
In this case, the output array has a shape of (10,1), which means it has 10 rows and 1 column. However, the shape that is being broadcasted has a shape of (10,29), which means it has 10 rows and 29 columns. These shapes are not compatible because the number of columns in the output array does not match the number of columns being broadcasted.
To resolve this error, you should check the arrays being used in the broadcast operation and make sure they have compatible shapes. You may need to reshape one or both of the arrays to ensure they have the same number of columns. Alternatively, you may need to adjust the broadcasting axis to match the shape of the output array.