Skip to content

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

@keenhl

Description

@keenhl

I have Tensorflow installed. When I check the version, it is 2.12.

tensorflow::tf_config()

2023-02-27 15:55:21.780906: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.

To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
TensorFlow v2.12.0-rc0 (/opt/miniconda3/envs/tf/lib/python3.11/site-packages/tensorflow)
Python v3.11 (
/opt/miniconda3/envs/tf/bin/python)

When I try to run

fit <- cellassign(exprs_obj = gexp,
marker_gene_info = markers,
s = s,
learning_rate = 1e-2,
shrinkage = TRUE,
verbose = FALSE)

I get this error.

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

Thank you for your help trying to figure out this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions