Error in py_call_impl(callable, call_args$unnamed, call_args$named)

Hi,
When I use scvi in R, errors occur when I set the parameters as follows; however, when I cancel these parameter settings and use the default parameters, the errors disappear. How can I resolve this issue?

model = scvi$model$SCVI(adata,

  •                     gene_likelihood = "nb",
    
  •                     n_latent = 50,
    
  •                     n_layers = 2)
    

Error in py_call_impl(callable, call_args$unnamed, call_args$named) :
TypeError: can’t multiply sequence by non-int of type ‘float’
Run reticulate::py_last_error() for details.

reticulate::py_last_error()

── Python Exception Message ──────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
File “/home/data/t170403/miniconda3/envs/scvi/lib/python3.9/site-packages/scvi/model/_scvi.py”, line 158, in init
self.module = self._module_cls(
File “/home/data/t170403/miniconda3/envs/scvi/lib/python3.9/site-packages/scvi/module/_vae.py”, line 175, in init
self.z_encoder = Encoder(
File “/home/data/t170403/miniconda3/envs/scvi/lib/python3.9/site-packages/scvi/nn/_base_components.py”, line 239, in init
self.encoder = FCLayers(
File “/home/data/t170403/miniconda3/envs/scvi/lib/python3.9/site-packages/scvi/nn/_base_components.py”, line 67, in init
layers_dim = [n_in] + (n_layers - 1) * [n_hidden] + [n_out]
TypeError: can’t multiply sequence by non-int of type ‘float’

── R Traceback ───────────────────────────────────────────────────────────────────────────────────────────

  1. └─scvi$model$SCVI(…)
  2. └─reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)