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

似乎StyTrans类中的this.embedding并没有实例化 #11

Closed
wangzexi opened this issue Apr 21, 2022 · 3 comments
Closed

似乎StyTrans类中的this.embedding并没有实例化 #11

wangzexi opened this issue Apr 21, 2022 · 3 comments

Comments

@wangzexi
Copy link

作者你好,我在学习您代码时发现,在StyTrans类构造函数中,this.embedding看起来是一个类,并没有提供参数实例化,想请教下实例化的参数是什么。

self.embedding = PatchEmbed

style = self.embedding(samples_s.tensors)

@CharlesChiuGit
Copy link

u can use github to click on PatchEmbed, it will tell u the definition and references of it.

@CharlesChiuGit
Copy link

also, i think the author forgot to put the () after PatchEmbed, Line 158 should be self.embedding = PatchEmbed()

@wangzexi
Copy link
Author

wangzexi commented Sep 6, 2022

别关issue呀邓盈盈博士,这代码您不是还没修正呢!

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