Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential incompatibility with TF2 #3

Open
elchorro opened this issue Oct 27, 2020 · 1 comment
Open

Potential incompatibility with TF2 #3

elchorro opened this issue Oct 27, 2020 · 1 comment

Comments

@elchorro
Copy link

I try to run examples from help and get.:

Error in py_get_attr_impl(x, name, silent) : 
  AttributeError: module 'tensorflow' has no attribute 'placeholder'

I have found this thread suggesting TF2 has no placeholder attribute.

My session:

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

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    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] sgmcmc_0.2.5     tensorflow_2.2.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.5       lattice_0.20-41  fansi_0.4.1      crayon_1.3.4     assertthat_0.2.1 rappdirs_0.3.1   grid_4.0.2       jsonlite_1.7.1   magrittr_1.5    
[10] tfruns_1.4       cli_2.0.2        rstudioapi_0.11  whisker_0.4      Matrix_1.2-18    reticulate_1.16  tools_4.0.2      glue_1.4.2       compiler_4.0.2  
[19] base64enc_0.1-3 

@mshane87
Copy link

mshane87 commented Mar 4, 2022

Hi @elchorro ,
I think sgmcmc pkg is written for Tensorflow v1 (specifically 1.13.1). So, you will have to solve this issue. For doing this please visit Tensorflow. This will solve future compatibility issues, hopefully.

best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants