'Tensor' object has no attribute 'sequeeze'
时间: 2023-09-29 07:06:18 浏览: 417
It seems like you have encountered an AttributeError in your code. The error message "'Tensor' object has no attribute 'sequeeze'" suggests that you are trying to call a 'sequeeze' attribute on a Tensor object, which does not exist.
It is possible that you made a typographical error and actually meant to use the method `squeeze()` instead of `sequeeze()`. The `squeeze()` method is used to remove dimensions of size 1 from the shape of a tensor.
Please double-check your code and ensure that you are using the correct method name. If you need further assistance, feel free to provide more details or share the relevant code snippet so that I can better understand the context and assist you more effectively.
阅读全文