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

Candle: better pooling op support #2374

Open
kingwingfly opened this issue Oct 13, 2024 · 0 comments
Open

Candle: better pooling op support #2374

kingwingfly opened this issue Oct 13, 2024 · 0 comments

Comments

@kingwingfly
Copy link
Contributor

Dear developpers,

I'm trying to train a ResNet model with Candle as its backend.

But it has a runtime panic raised here:

"max_pool2d_with_indices is not supported by Candle"

The model contains MaxPool2d and AdaptiveAvgPool2d, which look not well supported by Candle.

#[derive(Module, Debug)]
pub struct ResNet<B: Backend> {
    ...
    relu: Relu,
    maxpool: MaxPool2d,
    ...
    avgpool: AdaptiveAvgPool2d,
    fc: Linear<B>,
}

I really want to try Candle, but how to avoid MaxPool2d not working bug, or is there any alternative implementation? It is so kind of you to give me any inspiration!

@laggui laggui transferred this issue from tracel-ai/models Oct 15, 2024
@laggui laggui changed the title Enhance req: support Candle backend Candle: better pooling op support Oct 15, 2024
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

1 participant