Skip to content

Conversation

@boldar99
Copy link
Collaborator

Tests have been added accordingly.

Fixes weird behavior where tensor boxes that should be equal are different. Example for this:

>>> Box("F(A)", Dim(2, 2), Dim(3))
tensor.Box[float64]('F(A)', Dim(2, 2), Dim(3))

>>> Box("F(A)", Dim(2, 2), Dim(3), data=None)
tensor.Box[object_]('F(A)', Dim(2, 2), Dim(3))

Tests have been added accordingly.

Fixes weird behavior where tensor boxes that should be equal are different. Example for this:
```py
>>> Box("F(A)", Dim(2, 2), Dim(3))
tensor.Box[float64]('F(A)', Dim(2, 2), Dim(3))

>>> Box("F(A)", Dim(2, 2), Dim(3), data=None)
tensor.Box[object_]('F(A)', Dim(2, 2), Dim(3))
```
Copy link
Collaborator

@toumix toumix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from a couple of suggestions

@toumix toumix merged commit 909e203 into main Jan 17, 2024
@toumix toumix deleted the fix-tensor-type-inference branch January 17, 2024 15:11
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

Successfully merging this pull request may close these issues.

3 participants