Skip to content

AttributeError: 'NoneType' object has no attribute 'flatten'. Intel OneAPI optimisation introduces error #265

Answered by frgfm
karnikkanojia asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @karnikkanojia 👋

I don't know about Intel OneAPI so I'm not sure I can help much. Have you tried commenting the line model = ipex.optimize(model, dtype=torch.float32). If it works when you're commenting that, most likely, ipex changes things related to the pytorch hooks and are not, by default, compatible with torchcam I'm afraid

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@karnikkanojia
Comment options

@frgfm
Comment options

frgfm Aug 2, 2024
Maintainer

@karnikkanojia
Comment options

@frgfm
Comment options

@karnikkanojia
Comment options

Answer selected by frgfm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants