-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
RelayTextPrinter is now non-recursive. ExpandDataflow refactored #7817
Conversation
b3ef0a9
to
8c5f8e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the ExpandDataFlow refactor. It looks like you rewrote it without actually changing the behavior or using any new APIs? Could you explain the need for the refactor?
I'm not familiar with the RelayTextPrinter, and I've never seen stack overflows when printing models with AsText or python str, I've done models over 150k nodes. What exactly is the use case that overflowed for you? Perhaps I just haven't been calling this class. We'll need a test that hits the bad behavior on the old version
ping @jroesch for the RelayTextPrinter
ping @jroesch |
Is it possible to add a unit test that triggers this? |
To reveal the issue please use a unit test here 7832: |
Hi @d-smirnov, sorry, I missed your response last week. Can you add that as a test here? Maybe save the result of AsText as a String and assert it's not empty? |
RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355
Change-Id: Iac69766428d5b9783279cb02a57064fd82842001
Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
0c1022b
to
fab2725
Compare
Thanks @d-smirnov |
…che#7817) * RelayTextPrinter is now non-recursive. ExpandDataflow refactored RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355 * requested changes Change-Id: Iac69766428d5b9783279cb02a57064fd82842001 * unit test added Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
…che#7817) * RelayTextPrinter is now non-recursive. ExpandDataflow refactored RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355 * requested changes Change-Id: Iac69766428d5b9783279cb02a57064fd82842001 * unit test added Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
…che#7817) * RelayTextPrinter is now non-recursive. ExpandDataflow refactored RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355 * requested changes Change-Id: Iac69766428d5b9783279cb02a57064fd82842001 * unit test added Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
…che#7817) * RelayTextPrinter is now non-recursive. ExpandDataflow refactored RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355 * requested changes Change-Id: Iac69766428d5b9783279cb02a57064fd82842001 * unit test added Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
…che#7817) * RelayTextPrinter is now non-recursive. ExpandDataflow refactored RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355 * requested changes Change-Id: Iac69766428d5b9783279cb02a57064fd82842001 * unit test added Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
…che#7817) * RelayTextPrinter is now non-recursive. ExpandDataflow refactored RelayTextPrinter is now non-recursive to allow printing larger graphs. ExpandDataflow is generalised to have separate node expander. Change-Id: Id5a3a470fbc8b90822502fbc8d24d534df1ea355 * requested changes Change-Id: Iac69766428d5b9783279cb02a57064fd82842001 * unit test added Change-Id: Id20ae72f9f5f8dd92d4d182360b28156c035e667
RelayTextPrinter made non-recursive to allow printing larger graphs ( > ~3000 nodes). There also a small refactoring in ExpandDataflow which was made bit more generalised with "node expander" extracted as separate method.