Use conditional branching to call the function shared version (#1091)
Use conditional branching to call the function shared version (#1091)

This avoids overwriting the `accUpdateGradParameters` field which
exposes the function to serialization and makes the saved object
incompatible with other Lua versions.

joeyhng/nn,apaszke/nn,nicholas-leonard/nn,colesbury/nn