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

module 'tensorflow' has no attribute 'reset_default_graph' #12

Open
skatragadda-nygc opened this issue Jan 28, 2020 · 4 comments
Open

Comments

@skatragadda-nygc
Copy link

Would you know how to fix this issue?

Constructing tensorflow graph
Error in py_get_attr_impl(x, name, silent) :
AttributeError: module 'tensorflow' has no attribute 'reset_default_graph'
Calls: run_clonealign ... py_get_attr_or_item -> py_get_attr -> py_get_attr_impl
Execution halted

Thanks

@kieranrcampbell
Copy link
Owner

This should be fixed in 205d8b8 - can you reinstall and try again? Note that this now requires tensorflow 2.1.0, readme updated with installation instructions

@Toseph
Copy link

Toseph commented Jan 31, 2020

Hello, I am having a similar issue. The latest update today did resolve the "no attribute" error, but now I see this.

Error in (function (gene_expression_data, copy_number_data, max_iter = 200, : unused argument (seed = 1392) Calls: run_clonealign -> do.call Execution halted

The Rscript looks like this,
`library(Matrix)
library(tensorflow)
library(clonealign)

#Load Rdata file.

load("HPNE_clonealign.Rdata")
reticulate::py_config()
Sys.getenv()
Sys.unsetenv('VIRTUAL_ENV')
Sys.unsetenv('PATH')
Sys.unsetenv('RETICULATE_REQUIRED_MODULE')
Sys.getenv()

#Fit model.
model_from_clonealign <- run_clonealign(ca_data$gene_expression_data,
ca_data$copy_number_data,
seed = 1392)

#Save.`

@kieranrcampbell
Copy link
Owner

Hi @Toseph

I removed the seed argument to clonealign so you can now set.seed(...) beforehand as per bioconductor guidelines.

Thanks,

Kieran

@Toseph
Copy link

Toseph commented Jan 31, 2020

Thanks for the update @kieranrcampbell! We will test this today and get back to you.

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

3 participants