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

'ttnn.max_pool2d' op ttnn.max_pool2d currently only supports an input type of bfloat16. Recieved 'f32'. #15768

Open
meenakshiramanathan1 opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working forge

Comments

@meenakshiramanathan1
Copy link

meenakshiramanathan1 commented Dec 6, 2024

Describe the bug
ttnn.max_pool2d op throws an assertion that only currently bfloat16 input is supported
error: 'ttnn.max_pool2d' op ttnn.max_pool2d currently only supports an input type of bfloat16. Recieved 'f32'.
This issue was observed in many models and changing the model and inputs to bfloat16 is not supported in forge currently. Hence float32 input support is required for ttnn.max_pool2d op.

To Reproduce
Steps to reproduce the behavior:
git checkout mramanathan/maxpool2d_fp32
git submodule update --recursive

pytest tests/ttnn/unit_tests/operations/test_maxpool2d.py::test_run_max_pool_fp32 -svv

Observed behaviour
E RuntimeError: TT_FATAL @ ../ttnn/cpp/ttnn/operations/pool/maxpool/device/max_pool2d_device_op.cpp:25: input.get_dtype() == DataType::BFLOAT16 E info: E Only BFLOAT16 supported for now

Logs
maxpool2d_metal_fp32.log

@meenakshiramanathan1 meenakshiramanathan1 added the bug Something isn't working label Dec 6, 2024
@meenakshiramanathan1 meenakshiramanathan1 changed the title [Bug Report] ... error: 'ttnn.max_pool2d' op ttnn.max_pool2d currently only supports an input type of bfloat16. Recieved 'f32'. Dec 6, 2024
@meenakshiramanathan1 meenakshiramanathan1 changed the title error: 'ttnn.max_pool2d' op ttnn.max_pool2d currently only supports an input type of bfloat16. Recieved 'f32'. 'ttnn.max_pool2d' op ttnn.max_pool2d currently only supports an input type of bfloat16. Recieved 'f32'. Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forge
Projects
None yet
Development

No branches or pull requests

1 participant