R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) { # nocov start
  reticulate::configure_environment(pkgname)
  # catch tf error
  suppressMessages(try(keras::use_implementation("tensorflow"), silent = TRUE))
  # catch TFP error
  suppressMessages(try(invisible(tfprobability::tfd_normal(0,1)), silent = TRUE))
} # nocov end
davidruegamer/deepregression documentation built on May 30, 2022, 6:21 p.m.