Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' #8

Open
binmus opened this issue Apr 17, 2023 · 4 comments

Comments

@binmus
Copy link

binmus commented Apr 17, 2023

No description provided.

@binmus
Copy link
Author

binmus commented Apr 17, 2023

请问这是什么原因呢

@davidfrz
Copy link
Owner

是不是版本不一致

@husaixy
Copy link

husaixy commented Apr 27, 2023

解决了吗?

@husaixy
Copy link

husaixy commented Apr 30, 2023

找到了一个解决方法,直接到报错的行把代码替换成下面这个
def forward(self, input: Tensor) -> Tensor:
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants