2021年4月15日星期四

tensorflow issue

 stuck in tensorflow for few days for PINN. 

One of thing to get rid of placeholder is upgrade tensorflow

import tensorflow.compat.v1 as tf

tf.disable_v2_behavior() 

#tf.compat.v1.disable_eager_execution()



https://stackoverflow.com/questions/55870127/module-tensorflow-has-no-attribute-contrib


https://stackoverflow.com/questions/30429491/how-to-use-cmakedefine-preprocessor-directive-properly


cannot find header, need to make first 


find to fix the rendering error when install vtk  add word like const

https://stackoverflow.com/questions/19816139/expression-having-type-const-comparevptrs-would-lose-some-const-volatile-quali


stop at here 

File "C:\Users\Chiwei\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 481, in _disallow_in_graph_mode

    " this function with @tf.function.".format(task))


OperatorNotAllowedInGraphError: using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.


suspect is the save function and gpu plot will come back later.



没有评论: