这个错误消息是说:AttributeError: 'matrix' 对象没有属性 'unsqueeze'。
这意味着你在使用 python 中的 matrix 对象,并试图调用它的 'unsqueeze' 属性,但是 matrix 对象并没有这个属性。
建议你检查你的代码,并确保你使用了正确的对象类型。在 Python 中,建议使用 numpy 的 ndarray 来代替 matrix。你可以把 matrix 对象转换为 ndarray 对象来解决这个问题,例如:
import numpy as np
matrix_object = np.asarray(matrix_objec