The error is expected since a new variable is created through the differentiable slice operation. A workaround is described here.
The error is expected since a new variable is created through the differentiable slice operation. A workaround is described here.