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

model(dataset['train_input']) #294

Closed
Papillon-forest opened this issue Jul 2, 2024 · 2 comments
Closed

model(dataset['train_input']) #294

Papillon-forest opened this issue Jul 2, 2024 · 2 comments

Comments

@Papillon-forest
Copy link

我想知道下列两段代码的区别在哪,或许有人可以点拨我一下吗?

model = model.prune()
model(dataset['train_input'])
model.plot()
model = model.prune()
model.plot()
@KindXiaoming
Copy link
Owner

上面那个可以跑通,下面那个会报错。主要是Plot之前需要forward一次获取activation。

@Papillon-forest
Copy link
Author

@KindXiaoming Thank you for your guidance in your busy schedule, it is much appreciated!

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

2 participants