-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Very slow compilation of resnet18 #234
Comments
Reproduced this with a simpler case here: https://play.rust-lang.org/?version=nightly&mode=release&edition=2021&gist=f8dd6c7f4d89497c3a793cfc77a5cc56 This seems to be an issue with generic_const_exprs bounds on associated types. If there's only 1 bound on the associated type, then it compiles super quickly, but two bounds see the slow compilation speed. Oddly enough using generic outputs instead of associated output types doesn't see the same error. |
The following program takes an extremely long time to compile (order of minutes? tbh it hasn't finished compiling for me). I believe this is because each conv2d layer in the below has to have it's own concrete function with different const values.
That means there are 20 different convolution forward functions.
The text was updated successfully, but these errors were encountered: