In this PR, we refactor the vaeac approach so that the torch-modules are initiated through functions. Previously, when they were not inside functions, installation of shapr failed as it tried to evaluate torch::, which was not installed.
We tried to fix this in #390, but do to technical issues for me, I had to make a new PR.
Also fixed some typos in the Roxygen documentation and ensured that the progressr progress bar inside the vaeac approach is only called if progressr is available.
Some extra care had to be given to memory_layer, which had an internal and shared environment between all instances of memory_layer. In the new version, we have to create an environment first and then send this to the new version of memory_layer.
In this PR, we refactor the
vaeac
approach so that thetorch
-modules are initiated through functions. Previously, when they were not inside functions, installation ofshapr
failed as it tried to evaluatetorch::
, which was not installed. We tried to fix this in #390, but do to technical issues for me, I had to make a new PR.Also fixed some typos in the Roxygen documentation and ensured that the
progressr
progress bar inside thevaeac
approach is only called ifprogressr
is available.Details: Instead of having
we replaced it with
Some extra care had to be given to
memory_layer
, which had an internal and shared environment between all instances ofmemory_layer
. In the new version, we have to create an environment first and then send this to the new version ofmemory_layer
.