How to create variables inside tf.function decorated method?

后端 未结 0 1693
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 14:47

Cannot create a tf.Variable (while I should) in a tf.function decorated method:

@tf.function
def some_func():
    x = tf.Variable([1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题