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

M1 macs and disabling eager evaluation #498

Open
njtierney opened this issue Jan 28, 2022 · 8 comments
Open

M1 macs and disabling eager evaluation #498

njtierney opened this issue Jan 28, 2022 · 8 comments

Comments

@njtierney
Copy link

Hi there!

I have managed to install TF version 2.6.0 on my M1 mac! Hooray!

However, I am really hoping to install TF version 2.5.0 for greta, as we would like to work out a way to test if we can disable "eager evaluation" in TF, and that is apparently not possible in 2.6.0 (https://stackoverflow.com/questions/53429896/how-do-i-disable-tensorflows-eager-execution)

Looking under the hood at the installation code, it seems that I can get TF version 2.5.0 to install by changing the code to be:

install("tensorflow-deps==2.5.0", channel = c("apple", "conda-forge"))

However this doesn't seem to work as I expected, and version 2.6.0 is still loaded.

As I understand it, some of the issues around installing version 2.5.0 on M1 macs are that it just isn't built on M1 architecture, is this the case?

I appreciate that this might be a rather complicated request, so no worries if this isn't in scope, just wanted to see if there was an outside change we could change the TF version for M1 macs, as if we have to use "eager mode" in greta, it will require re-writing substantial amounts of the code base.

(We've written a bit more around migration in greta, if you're interested, see greta-dev/greta#306)

@t-kalinowski
Copy link
Member

Does Tensorflow 2.7 (the current release) work for you?

library(tensorflow)
tf$compat$v1$disable_eager_execution()
#> Loaded Tensorflow version 2.7.0
tf1 <- tensorflow::tf$compat$v1
tf1$placeholder(dtype = "float32", shape = shape(1))
#> Tensor("Placeholder:0", shape=(1,), dtype=float32)
tf_config()
#> TensorFlow v2.7.0 ()
#> Python v3.8 (~/Library/r-miniconda-arm64/envs/r-reticulate/bin/python)

Created on 2022-01-27 by the reprex package (v2.0.1)

@njtierney
Copy link
Author

I can only seem to get version 2.6 actually

library(tensorflow)
packageVersion("tensorflow")
#> [1] '2.7.0.9000'
tf$compat$v1$disable_eager_execution()
#> Loaded Tensorflow version 2.6.0
tf1 <- tensorflow::tf$compat$v1
tf1$placeholder(dtype = "float32", shape = shape(1))
#> Tensor("Placeholder:0", shape=(1,), dtype=float32)
tf_config()
#> TensorFlow v2.6.0 ()
#> Python v3.8 (~/Library/r-miniconda-arm64/envs/r-reticulate/bin/python)

Created on 2022-01-28 by the reprex package (v2.0.1)

@njtierney
Copy link
Author

I'm not sure if this is in your wheelhouse, or if I should ask the folks over at reticulate, but I cannot seem to get "tensorflow-probability" to install:

reticulate::py_install(packages = "tensorflow-probability")
reticulate::py_module_available(module = "tensorflow-probability")
#> [1] FALSE

Created on 2022-01-28 by the reprex package (v2.0.1)

Session info
sessioninfo::session_info()
#> ─ Session info  ™️  🎧  🇦🇨   ──────────────────────────────────────────────────
#>  hash: trade mark, headphone, flag: Ascension Island
#> 
#>  setting  value
#>  version  R version 4.1.2 (2021-11-01)
#>  os       macOS Big Sur 11.2.2
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_AU.UTF-8
#>  ctype    en_AU.UTF-8
#>  tz       Australia/Perth
#>  date     2022-01-28
#>  pandoc   2.16.1 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version   date (UTC) lib source
#>  backports     1.4.1     2021-12-13 [1] CRAN (R 4.1.1)
#>  cli           3.1.1     2022-01-20 [1] CRAN (R 4.1.1)
#>  crayon        1.4.2     2021-10-29 [1] CRAN (R 4.1.1)
#>  digest        0.6.29    2021-12-01 [1] CRAN (R 4.1.1)
#>  ellipsis      0.3.2     2021-04-29 [1] CRAN (R 4.1.0)
#>  evaluate      0.14      2019-05-28 [1] CRAN (R 4.1.0)
#>  fansi         0.5.0     2021-05-25 [1] CRAN (R 4.1.0)
#>  fastmap       1.1.0     2021-01-25 [1] CRAN (R 4.1.0)
#>  fs            1.5.1     2021-11-30 [1] CRAN (R 4.1.1)
#>  glue          1.6.1     2022-01-22 [1] CRAN (R 4.1.1)
#>  here          1.0.1     2020-12-13 [1] CRAN (R 4.1.0)
#>  highr         0.9       2021-04-16 [1] CRAN (R 4.1.0)
#>  htmltools     0.5.2     2021-08-25 [1] CRAN (R 4.1.1)
#>  jsonlite      1.7.3     2022-01-17 [1] CRAN (R 4.1.1)
#>  knitr         1.36      2021-09-29 [1] CRAN (R 4.1.1)
#>  lattice       0.20-45   2021-09-22 [1] CRAN (R 4.1.2)
#>  lifecycle     1.0.1     2021-09-24 [1] CRAN (R 4.1.1)
#>  magrittr      2.0.2     2022-01-26 [1] CRAN (R 4.1.1)
#>  Matrix        1.3-4     2021-06-01 [1] CRAN (R 4.1.2)
#>  pillar        1.6.4     2021-10-18 [1] CRAN (R 4.1.1)
#>  pkgconfig     2.0.3     2019-09-22 [1] CRAN (R 4.1.0)
#>  png           0.1-7     2013-12-03 [1] CRAN (R 4.1.0)
#>  purrr         0.3.4     2020-04-17 [1] CRAN (R 4.1.0)
#>  R.cache       0.15.0    2021-04-30 [1] CRAN (R 4.1.0)
#>  R.methodsS3   1.8.1     2020-08-26 [1] CRAN (R 4.1.0)
#>  R.oo          1.24.0    2020-08-26 [1] CRAN (R 4.1.0)
#>  R.utils       2.11.0    2021-09-26 [1] CRAN (R 4.1.1)
#>  Rcpp          1.0.8     2022-01-13 [1] CRAN (R 4.1.1)
#>  reprex        2.0.1     2021-08-05 [1] CRAN (R 4.1.1)
#>  reticulate    1.24-9000 2022-01-28 [1] Github (rstudio/reticulate@8347417)
#>  rlang         1.0.0     2022-01-26 [1] CRAN (R 4.1.1)
#>  rmarkdown     2.11      2021-09-14 [1] CRAN (R 4.1.1)
#>  rprojroot     2.0.2     2020-11-15 [1] CRAN (R 4.1.0)
#>  rstudioapi    0.13      2020-11-12 [1] CRAN (R 4.1.0)
#>  sessioninfo   1.2.1     2021-11-02 [1] CRAN (R 4.1.1)
#>  stringi       1.7.6     2021-11-29 [1] CRAN (R 4.1.1)
#>  stringr       1.4.0     2019-02-10 [1] CRAN (R 4.1.1)
#>  styler        1.6.2     2021-09-23 [1] CRAN (R 4.1.1)
#>  tibble        3.1.6     2021-11-07 [1] CRAN (R 4.1.1)
#>  utf8          1.2.2     2021-07-24 [1] CRAN (R 4.1.0)
#>  vctrs         0.3.8     2021-04-29 [1] CRAN (R 4.1.0)
#>  withr         2.4.3     2021-11-30 [1] CRAN (R 4.1.1)
#>  xfun          0.28      2021-11-04 [1] CRAN (R 4.1.1)
#>  yaml          2.2.2     2022-01-25 [1] CRAN (R 4.1.1)
#> 
#>  [1] /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library
#> 
#> ─ Python configuration ───────────────────────────────────────────────────────
#>  python:         /Users/nick/Library/r-miniconda-arm64/envs/r-reticulate/bin/python
#>  libpython:      /Users/nick/Library/r-miniconda-arm64/envs/r-reticulate/lib/libpython3.8.dylib
#>  pythonhome:     /Users/nick/Library/r-miniconda-arm64/envs/r-reticulate:/Users/nick/Library/r-miniconda-arm64/envs/r-reticulate
#>  version:        3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:21:17)  [Clang 11.1.0 ]
#>  numpy:          /Users/nick/Library/r-miniconda-arm64/envs/r-reticulate/lib/python3.8/site-packages/numpy
#>  numpy_version:  1.19.5
#> 
#> ──────────────────────────────────────────────────────────────────────────────

@t-kalinowski
Copy link
Member

t-kalinowski commented Jan 28, 2022

Can you please try this?:

reticulate::py_install(packages = "tensorflow-probability", pip = TRUE)
reticulate::py_module_available(module = "tensorflow_probability")

(I added pip=TRUE and changed the imported module name by replacing - with _)

@t-kalinowski
Copy link
Member

I just realized there are two issues being discussed in this thread... coming back to the first one:
It looks like you can disable eager mode in TF 2.6. Does that solve your needs?

@njtierney njtierney changed the title Allow for TF version 2.5.0 to be installed on M1 macs? M1 macs and disabling eager evaluation Jan 31, 2022
@njtierney
Copy link
Author

Hi @t-kalinowski - I'm not sure if eager mode is being turned off, or if it is interactive with tfp in some strange way - I've documented some of the issues that we are having here: greta-dev/greta#306 (comment).

We are still working through this issue, so it could be something on our end with how we have wrapped tensorflow or tensorflow-probability. Just thought I'd link that to you in case there appears to be something obvious we have missed?

@t-kalinowski
Copy link
Member

Hi, I'd be happy to take a look. What's the simplest way for me to reproduce the error on my side? I took a look at greta-dev/greta#306 and checked out PR greta-dev/greta#482, but everything still seems to be bootstrapping and requiring TF 1.14.0. E.g., https://github.com/njtierney/greta/blob/aa9c25bd3163890d3d7d19cb644ff7a6f32da2d4/R/greta_install_python_deps.R#L10

@njtierney
Copy link
Author

Hi @t-kalinowski - sorry for the delay, your request made me look a lot closer at how things were being installed and I think I've got it sorted out in the PR now, if you wanted to have a go at exploring how it all works, see the below code:

So what I notice is that on M1 mac, I get the same error, regardless of turning on eager mode or not. Here I control with an environment variable whether eager mode is turned on, and then turned off.

Now, this could indeed be something to do with us needing to change things in how we interact with the new updated TF API, in which case this is just something we need to sift through. But I thought I'd show this here in case you found it relevant or there was something of interest.

Thanks again in advance!

# install with: 
# remotes::install_github("greta-dev/greta#482)
Sys.setenv("GRETA_ENABLE_EAGER"=FALSE)
library(greta)
#> 
#> Attaching package: 'greta'
#> The following objects are masked from 'package:stats':
#> 
#>     binomial, cov2cor, poisson
#> The following objects are masked from 'package:base':
#> 
#>     %*%, apply, backsolve, beta, chol2inv, colMeans, colSums, diag,
#>     eigen, forwardsolve, gamma, identity, rowMeans, rowSums, sweep,
#>     tapply

# check various python deps are installed correctly
greta_sitrep()
#> ℹ checking if python available
#> ✓ python (version 3.8) available
#> 
#> ℹ checking if TensorFlow available
#> ✓ TensorFlow (version 2.6.0) available
#> 
#> ℹ checking if TensorFlow Probability available
#> ✓ TensorFlow Probability (version 0.14.1) available
#> 
#> ℹ checking if greta conda environment available
#> ✓ greta conda environment available
#> 
#> Warning: greta does not currently work with Apple Silicon (M1)
#> We are working on getting this resolved ASAP, see
#> <https://github.com/greta-dev/greta/issues/458> for current progress.
#> ℹ Initialising python and checking dependencies, this may take a moment.
#> ✓ Initialising python and checking dependencies ... done!
#> 
#> eager flag value is FALSE
#> ℹ Disabling TF eager execution with: `tf$compat$v1$disable_eager_execution()`
#> ℹ Show current state of eager execution with:
#>   `tf$compat$v1$executing_eagerly()`
#> Loaded Tensorflow version 2.6.0
# you may need to do
# install_greta_deps()
tensorflow::tf$compat$v1$executing_eagerly()
#> [1] FALSE
m <- model(normal(0,1))
#> Warning: greta does not currently work with Apple Silicon (M1)
#> We are working on getting this resolved ASAP, see
#> <https://github.com/greta-dev/greta/issues/458> for current progress.

#> Warning: greta does not currently work with Apple Silicon (M1)
#> We are working on getting this resolved ASAP, see
#> <https://github.com/greta-dev/greta/issues/458> for current progress.

mcmc(m)
#> Error in py_call_impl(callable, dots$args, dots$keywords): RuntimeError: Evaluation error: ValueError: Tensor("mcmc_sample_chain/trace_scan/while/mcmc_sample_chain_trace_scan_while_chain_of_mcmc_sample_chain_trace_scan_while_reshape_of_mcmc_sample_chain_trace_scan_while_identity/forward_log_det_jacobian/mcmc_sample_chain_trace_scan_while_reshape/forward/Const:0", shape=(2,), dtype=int32) must be from the same graph as Tensor("leapfrog_integrate_one_step/maybe_call_fn_and_grads/value_and_gradients/value_and_gradient/Shape:0", shape=(2,), dtype=int32) (graphs are <tensorflow.python.framework.ops.Graph object at 0x14e9feee0> and FuncGraph(name=mh_one_step_hmc_kernel_one_step_leapfrog_integrate_while_body_440, id=5902822128)).
#> .

Created on 2022-03-17 by the reprex package (v2.0.1)

Session info
sessioninfo::session_info()
#> ─ Session info  ↘️  👌  🌧️   ───────────────────────────────────────────────────
#>  hash: down-right arrow, OK hand, cloud with rain
#> 
#>  setting  value
#>  version  R version 4.1.2 (2021-11-01)
#>  os       macOS Big Sur 11.2.2
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_AU.UTF-8
#>  ctype    en_AU.UTF-8
#>  tz       Australia/Perth
#>  date     2022-03-17
#>  pandoc   2.16.1 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version    date (UTC) lib source
#>  abind         1.4-5      2016-07-21 [1] CRAN (R 4.1.0)
#>  backports     1.4.1      2021-12-13 [1] CRAN (R 4.1.1)
#>  base64enc     0.1-3      2015-07-28 [1] CRAN (R 4.1.0)
#>  callr         3.7.0      2021-04-20 [1] CRAN (R 4.1.0)
#>  cli           3.2.0      2022-02-14 [1] CRAN (R 4.1.1)
#>  coda          0.19-4     2020-09-30 [1] CRAN (R 4.1.0)
#>  codetools     0.2-18     2020-11-04 [1] CRAN (R 4.1.2)
#>  crayon        1.5.0      2022-02-14 [1] CRAN (R 4.1.1)
#>  digest        0.6.29     2021-12-01 [1] CRAN (R 4.1.1)
#>  ellipsis      0.3.2      2021-04-29 [1] CRAN (R 4.1.0)
#>  evaluate      0.15       2022-02-18 [1] CRAN (R 4.1.1)
#>  fansi         1.0.2      2022-01-14 [1] CRAN (R 4.1.1)
#>  fastmap       1.1.0      2021-01-25 [1] CRAN (R 4.1.0)
#>  fs            1.5.2      2021-12-08 [1] CRAN (R 4.1.1)
#>  future        1.23.0     2021-10-31 [1] CRAN (R 4.1.1)
#>  globals       0.14.0     2020-11-22 [1] CRAN (R 4.1.0)
#>  glue          1.6.2      2022-02-24 [1] CRAN (R 4.1.1)
#>  greta       * 0.4.1.9000 2022-03-17 [1] local
#>  here          1.0.1      2020-12-13 [1] CRAN (R 4.1.0)
#>  highr         0.9        2021-04-16 [1] CRAN (R 4.1.0)
#>  hms           1.1.1      2021-09-26 [1] CRAN (R 4.1.1)
#>  htmltools     0.5.2      2021-08-25 [1] CRAN (R 4.1.1)
#>  jsonlite      1.8.0      2022-02-22 [1] CRAN (R 4.1.1)
#>  knitr         1.37       2021-12-16 [1] CRAN (R 4.1.1)
#>  lattice       0.20-45    2021-09-22 [1] CRAN (R 4.1.2)
#>  lifecycle     1.0.1      2021-09-24 [1] CRAN (R 4.1.1)
#>  listenv       0.8.0      2019-12-05 [1] CRAN (R 4.1.0)
#>  magrittr      2.0.2      2022-01-26 [1] CRAN (R 4.1.1)
#>  Matrix        1.3-4      2021-06-01 [1] CRAN (R 4.1.2)
#>  parallelly    1.30.0     2021-12-17 [1] CRAN (R 4.1.1)
#>  pillar        1.7.0      2022-02-01 [1] CRAN (R 4.1.1)
#>  pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.1.0)
#>  png           0.1-7      2013-12-03 [1] CRAN (R 4.1.0)
#>  prettyunits   1.1.1      2020-01-24 [1] CRAN (R 4.1.0)
#>  processx      3.5.2      2021-04-30 [1] CRAN (R 4.1.0)
#>  progress      1.2.2      2019-05-16 [1] CRAN (R 4.1.0)
#>  ps            1.6.0      2021-02-28 [1] CRAN (R 4.1.0)
#>  purrr         0.3.4      2020-04-17 [1] CRAN (R 4.1.0)
#>  R.cache       0.15.0     2021-04-30 [1] CRAN (R 4.1.0)
#>  R.methodsS3   1.8.1      2020-08-26 [1] CRAN (R 4.1.0)
#>  R.oo          1.24.0     2020-08-26 [1] CRAN (R 4.1.0)
#>  R.utils       2.11.0     2021-09-26 [1] CRAN (R 4.1.1)
#>  R6            2.5.1      2021-08-19 [1] CRAN (R 4.1.1)
#>  Rcpp          1.0.8      2022-01-13 [1] CRAN (R 4.1.1)
#>  reprex        2.0.1      2021-08-05 [1] CRAN (R 4.1.1)
#>  reticulate    1.24-9000  2022-01-28 [1] Github (rstudio/reticulate@8347417)
#>  rlang         1.0.2      2022-03-04 [1] CRAN (R 4.1.1)
#>  rmarkdown     2.11       2021-09-14 [1] CRAN (R 4.1.1)
#>  rprojroot     2.0.2      2020-11-15 [1] CRAN (R 4.1.0)
#>  rstudioapi    0.13       2020-11-12 [1] CRAN (R 4.1.0)
#>  sessioninfo   1.2.1      2021-11-02 [1] CRAN (R 4.1.1)
#>  stringi       1.7.6      2021-11-29 [1] CRAN (R 4.1.1)
#>  stringr       1.4.0      2019-02-10 [1] CRAN (R 4.1.1)
#>  styler        1.6.2      2021-09-23 [1] CRAN (R 4.1.1)
#>  tensorflow    2.7.0.9000 2022-01-28 [1] Github (rstudio/tensorflow@ff9eaeb)
#>  tfruns        1.5.0      2021-02-26 [1] CRAN (R 4.1.0)
#>  tibble        3.1.6      2021-11-07 [1] CRAN (R 4.1.1)
#>  utf8          1.2.2      2021-07-24 [1] CRAN (R 4.1.0)
#>  vctrs         0.3.8      2021-04-29 [1] CRAN (R 4.1.0)
#>  whisker       0.4        2019-08-28 [1] CRAN (R 4.1.0)
#>  withr         2.5.0      2022-03-03 [1] CRAN (R 4.1.1)
#>  xfun          0.30       2022-03-02 [1] CRAN (R 4.1.1)
#>  yaml          2.3.5      2022-02-21 [1] CRAN (R 4.1.1)
#> 
#>  [1] /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library
#> 
#> ─ Python configuration ───────────────────────────────────────────────────────
#>  python:         /Users/nick/Library/r-miniconda-arm64/envs/greta-env/bin/python
#>  libpython:      /Users/nick/Library/r-miniconda-arm64/envs/greta-env/lib/libpython3.8.dylib
#>  pythonhome:     /Users/nick/Library/r-miniconda-arm64/envs/greta-env:/Users/nick/Library/r-miniconda-arm64/envs/greta-env
#>  version:        3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:13:24)  [Clang 11.1.0 ]
#>  numpy:          /Users/nick/Library/r-miniconda-arm64/envs/greta-env/lib/python3.8/site-packages/numpy
#>  numpy_version:  1.19.5
#>  tensorflow:     /Users/nick/Library/r-miniconda-arm64/envs/greta-env/lib/python3.8/site-packages/tensorflow
#>  
#>  NOTE: Python version was forced by use_python function
#> 
#> ──────────────────────────────────────────────────────────────────────────────

And here is it being turned on:

# Now do not turn it on
Sys.setenv("GRETA_ENABLE_EAGER"=TRUE)
library(greta)
#> 
#> Attaching package: 'greta'
#> The following objects are masked from 'package:stats':
#> 
#>     binomial, cov2cor, poisson
#> The following objects are masked from 'package:base':
#> 
#>     %*%, apply, backsolve, beta, chol2inv, colMeans, colSums, diag,
#>     eigen, forwardsolve, gamma, identity, rowMeans, rowSums, sweep,
#>     tapply

# check various python deps are installed correctly
greta_sitrep()
#> ℹ checking if python available
#> ✓ python (version 3.8) available
#> 
#> ℹ checking if TensorFlow available
#> ✓ TensorFlow (version 2.6.0) available
#> 
#> ℹ checking if TensorFlow Probability available
#> ✓ TensorFlow Probability (version 0.14.1) available
#> 
#> ℹ checking if greta conda environment available
#> ✓ greta conda environment available
#> 
#> Warning: greta does not currently work with Apple Silicon (M1)
#> We are working on getting this resolved ASAP, see
#> <https://github.com/greta-dev/greta/issues/458> for current progress.
#> ℹ Initialising python and checking dependencies, this may take a moment.
#> ✓ Initialising python and checking dependencies ... done!
#> 
#> eager flag value is TRUE
#> ℹ Disabling TF eager execution with: `tf$compat$v1$disable_eager_execution()`
#> Loaded Tensorflow version 2.6.0
tensorflow::tf$compat$v1$executing_eagerly()
#> [1] TRUE

m <- model(normal(0,1))
#> Warning: greta does not currently work with Apple Silicon (M1)
#> We are working on getting this resolved ASAP, see
#> <https://github.com/greta-dev/greta/issues/458> for current progress.

#> Warning: greta does not currently work with Apple Silicon (M1)
#> We are working on getting this resolved ASAP, see
#> <https://github.com/greta-dev/greta/issues/458> for current progress.

mcmc(m)
#> Error in py_call_impl(callable, dots$args, dots$keywords): RuntimeError: Evaluation error: ValueError: Tensor("mcmc_sample_chain/trace_scan/while/mcmc_sample_chain_trace_scan_while_chain_of_mcmc_sample_chain_trace_scan_while_reshape_of_mcmc_sample_chain_trace_scan_while_identity/forward_log_det_jacobian/mcmc_sample_chain_trace_scan_while_reshape/forward/Const:0", shape=(2,), dtype=int32) must be from the same graph as Tensor("leapfrog_integrate_one_step/maybe_call_fn_and_grads/value_and_gradients/value_and_gradient/Shape:0", shape=(2,), dtype=int32) (graphs are <tensorflow.python.framework.ops.Graph object at 0x117977ee0> and FuncGraph(name=mh_one_step_hmc_kernel_one_step_leapfrog_integrate_while_body_439, id=5875312768)).
#> .

Created on 2022-03-17 by the reprex package (v2.0.1)

Session info
sessioninfo::session_info()
#> ─ Session info  ↘️  👌  🌧️   ───────────────────────────────────────────────────
#>  hash: down-right arrow, OK hand, cloud with rain
#> 
#>  setting  value
#>  version  R version 4.1.2 (2021-11-01)
#>  os       macOS Big Sur 11.2.2
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_AU.UTF-8
#>  ctype    en_AU.UTF-8
#>  tz       Australia/Perth
#>  date     2022-03-17
#>  pandoc   2.16.1 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version    date (UTC) lib source
#>  abind         1.4-5      2016-07-21 [1] CRAN (R 4.1.0)
#>  backports     1.4.1      2021-12-13 [1] CRAN (R 4.1.1)
#>  base64enc     0.1-3      2015-07-28 [1] CRAN (R 4.1.0)
#>  callr         3.7.0      2021-04-20 [1] CRAN (R 4.1.0)
#>  cli           3.2.0      2022-02-14 [1] CRAN (R 4.1.1)
#>  coda          0.19-4     2020-09-30 [1] CRAN (R 4.1.0)
#>  codetools     0.2-18     2020-11-04 [1] CRAN (R 4.1.2)
#>  crayon        1.5.0      2022-02-14 [1] CRAN (R 4.1.1)
#>  digest        0.6.29     2021-12-01 [1] CRAN (R 4.1.1)
#>  ellipsis      0.3.2      2021-04-29 [1] CRAN (R 4.1.0)
#>  evaluate      0.15       2022-02-18 [1] CRAN (R 4.1.1)
#>  fansi         1.0.2      2022-01-14 [1] CRAN (R 4.1.1)
#>  fastmap       1.1.0      2021-01-25 [1] CRAN (R 4.1.0)
#>  fs            1.5.2      2021-12-08 [1] CRAN (R 4.1.1)
#>  future        1.23.0     2021-10-31 [1] CRAN (R 4.1.1)
#>  globals       0.14.0     2020-11-22 [1] CRAN (R 4.1.0)
#>  glue          1.6.2      2022-02-24 [1] CRAN (R 4.1.1)
#>  greta       * 0.4.1.9000 2022-03-17 [1] local
#>  here          1.0.1      2020-12-13 [1] CRAN (R 4.1.0)
#>  highr         0.9        2021-04-16 [1] CRAN (R 4.1.0)
#>  hms           1.1.1      2021-09-26 [1] CRAN (R 4.1.1)
#>  htmltools     0.5.2      2021-08-25 [1] CRAN (R 4.1.1)
#>  jsonlite      1.8.0      2022-02-22 [1] CRAN (R 4.1.1)
#>  knitr         1.37       2021-12-16 [1] CRAN (R 4.1.1)
#>  lattice       0.20-45    2021-09-22 [1] CRAN (R 4.1.2)
#>  lifecycle     1.0.1      2021-09-24 [1] CRAN (R 4.1.1)
#>  listenv       0.8.0      2019-12-05 [1] CRAN (R 4.1.0)
#>  magrittr      2.0.2      2022-01-26 [1] CRAN (R 4.1.1)
#>  Matrix        1.3-4      2021-06-01 [1] CRAN (R 4.1.2)
#>  parallelly    1.30.0     2021-12-17 [1] CRAN (R 4.1.1)
#>  pillar        1.7.0      2022-02-01 [1] CRAN (R 4.1.1)
#>  pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.1.0)
#>  png           0.1-7      2013-12-03 [1] CRAN (R 4.1.0)
#>  prettyunits   1.1.1      2020-01-24 [1] CRAN (R 4.1.0)
#>  processx      3.5.2      2021-04-30 [1] CRAN (R 4.1.0)
#>  progress      1.2.2      2019-05-16 [1] CRAN (R 4.1.0)
#>  ps            1.6.0      2021-02-28 [1] CRAN (R 4.1.0)
#>  purrr         0.3.4      2020-04-17 [1] CRAN (R 4.1.0)
#>  R.cache       0.15.0     2021-04-30 [1] CRAN (R 4.1.0)
#>  R.methodsS3   1.8.1      2020-08-26 [1] CRAN (R 4.1.0)
#>  R.oo          1.24.0     2020-08-26 [1] CRAN (R 4.1.0)
#>  R.utils       2.11.0     2021-09-26 [1] CRAN (R 4.1.1)
#>  R6            2.5.1      2021-08-19 [1] CRAN (R 4.1.1)
#>  Rcpp          1.0.8      2022-01-13 [1] CRAN (R 4.1.1)
#>  reprex        2.0.1      2021-08-05 [1] CRAN (R 4.1.1)
#>  reticulate    1.24-9000  2022-01-28 [1] Github (rstudio/reticulate@8347417)
#>  rlang         1.0.2      2022-03-04 [1] CRAN (R 4.1.1)
#>  rmarkdown     2.11       2021-09-14 [1] CRAN (R 4.1.1)
#>  rprojroot     2.0.2      2020-11-15 [1] CRAN (R 4.1.0)
#>  rstudioapi    0.13       2020-11-12 [1] CRAN (R 4.1.0)
#>  sessioninfo   1.2.1      2021-11-02 [1] CRAN (R 4.1.1)
#>  stringi       1.7.6      2021-11-29 [1] CRAN (R 4.1.1)
#>  stringr       1.4.0      2019-02-10 [1] CRAN (R 4.1.1)
#>  styler        1.6.2      2021-09-23 [1] CRAN (R 4.1.1)
#>  tensorflow    2.7.0.9000 2022-01-28 [1] Github (rstudio/tensorflow@ff9eaeb)
#>  tfruns        1.5.0      2021-02-26 [1] CRAN (R 4.1.0)
#>  tibble        3.1.6      2021-11-07 [1] CRAN (R 4.1.1)
#>  utf8          1.2.2      2021-07-24 [1] CRAN (R 4.1.0)
#>  vctrs         0.3.8      2021-04-29 [1] CRAN (R 4.1.0)
#>  whisker       0.4        2019-08-28 [1] CRAN (R 4.1.0)
#>  withr         2.5.0      2022-03-03 [1] CRAN (R 4.1.1)
#>  xfun          0.30       2022-03-02 [1] CRAN (R 4.1.1)
#>  yaml          2.3.5      2022-02-21 [1] CRAN (R 4.1.1)
#> 
#>  [1] /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library
#> 
#> ─ Python configuration ───────────────────────────────────────────────────────
#>  python:         /Users/nick/Library/r-miniconda-arm64/envs/greta-env/bin/python
#>  libpython:      /Users/nick/Library/r-miniconda-arm64/envs/greta-env/lib/libpython3.8.dylib
#>  pythonhome:     /Users/nick/Library/r-miniconda-arm64/envs/greta-env:/Users/nick/Library/r-miniconda-arm64/envs/greta-env
#>  version:        3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:13:24)  [Clang 11.1.0 ]
#>  numpy:          /Users/nick/Library/r-miniconda-arm64/envs/greta-env/lib/python3.8/site-packages/numpy
#>  numpy_version:  1.19.5
#>  tensorflow:     /Users/nick/Library/r-miniconda-arm64/envs/greta-env/lib/python3.8/site-packages/tensorflow
#>  
#>  NOTE: Python version was forced by use_python function
#> 
#> ──────────────────────────────────────────────────────────────────────────────

So there is probably some other update here in the API that I need to consider

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