mlverse / tft

R implementation of Temporal Fusion Transformers
https://mlverse.github.io/tft/
Other
25 stars 9 forks source link

Error in torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory) : object 'device' not found #18

Closed 3SMMZRjWgS closed 2 years ago

3SMMZRjWgS commented 2 years ago

Hello,

I'm trying out the package. When I run the code from the example section under README.md, I get the following error message:

Error in torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory) : object 'device' not found

Below is my session info:

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] torch_0.7.2.9000     tsibble_1.1.1        yardstick_0.0.9      recipes_0.2.0       
[5] dplyr_1.0.8          rsample_0.1.1        tft_0.0.0.9000       RevoUtils_11.0.2    
[9] RevoUtilsMath_11.0.0

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.2   purrr_0.3.4        listenv_0.8.0      splines_4.0.2      lattice_0.20-45   
 [6] vctrs_0.3.8        generics_0.1.2     utf8_1.2.2         survival_3.3-1     prodlim_2019.11.13
[11] rlang_1.0.2        pillar_1.7.0       glue_1.6.2         withr_2.5.0        bit64_4.0.5       
[16] slider_0.2.2       lifecycle_1.0.1    plyr_1.8.6         lava_1.6.10        timeDate_3043.102 
[21] anytime_0.3.9      future_1.24.0      codetools_0.2-18   callr_3.7.0        ps_1.6.0          
[26] parallel_4.0.2     class_7.3-20       fansi_1.0.2        furrr_0.2.3        Rcpp_1.0.8.2      
[31] coro_1.0.2         ipred_0.9-12       parallelly_1.30.0  bit_4.0.4          digest_0.6.29     
[36] processx_3.5.2     grid_4.0.2         hardhat_0.2.0      cli_3.2.0          tools_4.0.2       
[41] magrittr_2.0.2     tibble_3.1.6       crayon_1.5.0       tidyr_1.2.0        future.apply_1.8.1
[46] pkgconfig_2.0.3    ellipsis_0.3.2     MASS_7.3-55        Matrix_1.4-0       warp_0.2.0        
[51] pROC_1.18.0        lubridate_1.8.0    gower_1.0.0        assertthat_0.2.1   rstudioapi_0.13   
[56] R6_2.5.1           globals_0.14.0     rpart_4.1.16       nnet_7.3-17        compiler_4.0.2 
dfalbel commented 2 years ago

Hi ! Sorry, this package is in active development and not ready to use yet. Most of the API is not implemented or will still change a lot in the near future.

3SMMZRjWgS commented 2 years ago

Got it. Thanks! I'll be following it. Also, just a note that when I ran the example, it was only running in single threaded mode.