This error typically occurs when attempting to perform an operation that involves two arrays or tensors with incompatible shapes. In this specific case, it seems that the shapes of two arrays are (None, 1) and (None, 7), respectively, which means that they have different numbers of columns.

To fix this error, you need to make sure that the shapes of the arrays or tensors involved in the operation are compatible. You can either modify the shape of one of the arrays or tensors to match the other, or use functions that can handle arrays with different shapes, such as broadcasting.

For example, if you are trying to concatenate two arrays, make sure they have the same number of columns. If you are trying to perform a dot product between two matrices, make sure that the number of columns in the first matrix matches the number of rows in the second matrix.

If you are still unsure how to fix this error, provide more information about the specific operation and the shapes of the arrays involved.

ValueError Shapes None 1 and None 7 are incompatible

原文地址: https://www.cveoy.top/t/topic/bXLZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录