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

Incomplete documentation for ttnn.normalize_global and ttnn.normalize_hw regarding input_tensor rank #13682

Closed
Tracked by #13795
amalbasaTT opened this issue Oct 10, 2024 · 1 comment

Comments

@amalbasaTT
Copy link
Contributor

amalbasaTT commented Oct 10, 2024

ttnn.normalize_global and ttnn.normalize_hw operations don't support tensors with rank that is not 4.

Steps to reproduce:

You can reproduce this error with sweep tests /tests/sweep_framework/sweeps/eltwise/unary/normalize_global/normalize_global.py, and /tests/sweep_framework/sweeps/eltwise/unary/normalize_hw/normalize_hw.py.

  1. Inside the sweep files, replace the "input_shape" parameter with:
        "input_shape": gen_shapes([1, 1, 32, 32], [6, 12, 256, 256], [1, 1, 32, 32], 8)
        + gen_shapes([1, 32, 32], [12, 256, 256], [1, 32, 32], 8)
        + gen_shapes([32, 32], [256, 256], [32, 32], 8),

To run:

python3 tests/sweep_framework/sweeps_parameter_generator.py --elastic cloud --module-name eltwise.unary.normalize_global.normalize_global
python3 tests/sweep_framework/sweeps_runner.py --elastic cloud --module-name eltwise.unary.normalize_global.normalize_global
python3 tests/sweep_framework/sweeps_parameter_generator.py --elastic cloud --module-name eltwise.unary.normalize_hw.normalize_hw
python3 tests/sweep_framework/sweeps_runner.py --elastic cloud --module-name eltwise.unary.normalize_hw.normalize_hw

Results can be found on elastic cloud as explained here: https://github.com/tenstorrent/tt-metal/tree/main/tests/sweep_framework

@mcw-anasuya
Copy link
Contributor

Merged to main, hence closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants