Irrationone / cellassign

Automated, probabilistic assignment of cell types in scRNA-seq data
Other
191 stars 79 forks source link

Remove invalid chunk from introduction vignette #70

Open rargelaguet opened 4 years ago

rargelaguet commented 4 years ago

The following chunk is not valid for tensorflow 2:

sess = tf$Session()
hello <- tf$constant('Hello, TensorFlow!')
sess$run(hello)

returns:

Error in py_get_attr_impl(x, name, silent) : 
  AttributeError: module 'tensorflow' has no attribute 'Session'
chanwkimlab commented 4 years ago

You can execute

tf <- tf$compat$v1;
tf$disable_v2_behavior()

before executing the chunk of code you mentioned to resolve the problem,