Closed miss-rain closed 3 years ago
my pytorch vision is 0.4.0, when i run run.sh, i meet error : AttributeError: module 'torch' has no attribute 'flatten'
Could you help me?
AttributeError: module 'torch' has no attribute 'flatten'
Hi, don't worry about it. You can use .view() to reshape the tensor or other similar ways.
.view()
my pytorch vision is 0.4.0, when i run run.sh, i meet error : AttributeError: module 'torch' has no attribute 'flatten'
Could you help me?