wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Use VarAccess logic in ND4S #172

Open riedelcastro opened 8 years ago

riedelcastro commented 8 years ago

VarAccess terms group a structured variable and an accessors to the variable. E.g. "theta.rels(2)" is an accessor of depth 2. These accessors make it easy to work with sparse gradients (they are generalizations of the lookup table). To convert a term tree to use these accessors, use Transformation.induceAccessors. Then create a VarAccessBox that efficiently deals with the sparse gradients.