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

Some model cannot to bfloat16 dtype #525

Open
swimdi opened this issue Nov 28, 2024 · 0 comments
Open

Some model cannot to bfloat16 dtype #525

swimdi opened this issue Nov 28, 2024 · 0 comments

Comments

@swimdi
Copy link
Collaborator

swimdi commented Nov 28, 2024

These model will call the nms_kernel function, and nms_kernel cannot run on bfloat16

  • MobileNetSSD
  • ssd300_vgg16
  • ssdlite320_mobilenet_v3_large
  • retinanet_resnet50_fpn
  • retinanet_resnet50_fpn_v2

So cannot set model.to(torch.bfloat16), so their convolution node encounter

RuntimeError: expected scalar type BFloat16 but found Float

Which means its input is bfloat16 (from ttnn) and weight is float32 (origin argument). I think compiler should have capable to solve this problem

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