You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
This is a big gotcha for new users. When developing a new algorithm node, if they (1) evaluate the results, (2) then change the code, and (3) evaluate the results again, nothing will change because the output is retrieved from the cache.
Expected Behavior
I would expect o2 to be all zeros.
Observed Behavior
o2 == o, since it comes from the cache.
Additional Notes
There are multiple ways we could solve this problem. I think the best way is to make cache_update True by default for Algorithm and Compositor Nodes, and then in the documentation note how to optimize a pipeline that uses the same Algorithm/Compositor node in multiple places.
The text was updated successfully, but these errors were encountered:
I think we are going to set cache_outputs = tl.Bool(default_value=False) for Algorithm nodes, maybe for other nodes as well. The caching is an optimization that some user's will want to turn on.
New users often get confused when developing new algorithms -- they make changes but get the same result. This is because the data is fetched from the cache (non-unique pipeline definition). Based on #372 we decided to change the default behaviour for most nodes.
Description
This is a big gotcha for new users. When developing a new algorithm node, if they (1) evaluate the results, (2) then change the code, and (3) evaluate the results again, nothing will change because the output is retrieved from the cache.
Steps to Reproduce
This throws an assertion error .
Expected Behavior
I would expect o2 to be all zeros.
Observed Behavior
o2 == o, since it comes from the cache.
Additional Notes
There are multiple ways we could solve this problem. I think the best way is to make
cache_update
True by default for Algorithm and Compositor Nodes, and then in the documentation note how to optimize a pipeline that uses the same Algorithm/Compositor node in multiple places.The text was updated successfully, but these errors were encountered: