Variable need to support reference
Created by: Superjomn
In one step of RNN, a previous state's memory is needed, so it is natural to have a design with multiple Scope
s as follows:
- create a
state
and apre-state
in current step scope - reference current
pre-state
to thestate
in preivous step scope (or copy the variable)
So, if the Variable support reference
, it will help to save the copy.