aesara-devs / aesara

Aesara is a Python library for defining, optimizing, and efficiently evaluating mathematical expressions involving multi-dimensional arrays.

Home Page:https://aesara.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider replacing `SharedVariable.default_update` with in-graph `Op`s

brandonwillard opened this issue · comments

We could possibly replace SharedVariable.default_updates with an Op—call it Update—that takes a SharedVariable and its update graph as inputs.

Such an approach would reduce the many confusions arising from this out-of-graph attribute, and make it easier to keep updates consistent with any replacements that are intended to affect them (e.g. when performing replacements outside of the aesara.function compilation context).