non-broadcastable output operand with shape (21,1) doesn't match the broadcast shape (21,60)
时间: 2024-06-03 13:09:11 浏览: 104
This error message indicates that there is an issue with the shapes of the arrays involved in the operation.
The output operand has a shape of (21,1), which means it has 21 rows and 1 column. However, the broadcast shape is (21,60), which means it has 21 rows and 60 columns.
The problem is that these shapes are not compatible for the operation being performed. Broadcasting is a way of extending arrays so that they can be operated on together, but the shapes must be compatible. In this case, it seems that the arrays are not compatible and cannot be broadcasted together.
To resolve this error, you may need to reshape one or both of the arrays so that their shapes are compatible. Alternatively, you may need to adjust the operation being performed so that it can be applied to arrays with these shapes.
阅读全文