Skip to content

Need ttnn.index or lowering of aten.index.Tensor performance too bad #576

Open
@swimdi

Description

@swimdi

In beit, has this input varation of aten.index.Tensor

["Tensor<[732, 12]> self = ?", "List[Optional[Tensor]] indices = [<[38809]>]"]

It mean it will pick part of input 38809 times, and its output is [38809, 12]

The original run can pass

cd pytorch2.0_ttnn
pytest tests/models/beit/test_beit_image_classification.py
# pass

But if it apply the lowering method of #559 , it took very long time

git checkout swimdi/stage4-index
pytest tests/models/beit/test_beit_image_classification.py
# took very long time

And I think so the performance is unaceeptable, so cannot use the lowering method of #559 , TT should implement an operator named ttnn.index to completely fit this lowering

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions