forked from daphne-eu/daphne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[daphneir] fix CastOp::inferTypes bug (daphne-eu#861)
This patch fixes a bug in the CastOp::inferTypes implementation which, for a matrix type of unknown value type, resets the matrix type by calling our custom builder MatrixType::get(ctx, valueType). This means that for example, casts from daphne.Matrix<?x?x!daphne.Unknown> to daphne.Matrix<?x?x!daphne.Unknown:rep[sparse]>, the matrix representation would be and reset. Closes daphne-eu#861
- Loading branch information
1 parent
9858fe8
commit bb9c158
Showing
1 changed file
with
33 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters