Skip to content

Cache SizeInfo on TransposeNode#480

Open
fastbodin wants to merge 1 commit intodwavesystems:mainfrom
fastbodin:enhancement/transposenode_cache_sizeinfo
Open

Cache SizeInfo on TransposeNode#480
fastbodin wants to merge 1 commit intodwavesystems:mainfrom
fastbodin:enhancement/transposenode_cache_sizeinfo

Conversation

@fastbodin
Copy link
Contributor

TransposeNode is now smart enough to know that it's size is simply it's predecessor's size.

@fastbodin fastbodin force-pushed the enhancement/transposenode_cache_sizeinfo branch from 5c3ac30 to 93e4d03 Compare February 24, 2026 01:46
@fastbodin
Copy link
Contributor Author

fastbodin commented Feb 24, 2026

Should add a python test to confirm behaviour similar to https://github.com/dwavesystems/dwave-optimization/blob/main/tests/test_symbols.py#L567-L579. <- Done. Only actually relevant when the transpose is taking on a vector.

`TransposeNode` can infer size from predecessor.
@fastbodin fastbodin force-pushed the enhancement/transposenode_cache_sizeinfo branch from 93e4d03 to 50fcbcd Compare February 24, 2026 17:23
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.

1 participant