Element wise operation on tensor not differentiable?

前端 未结 0 506
故里飘歌
故里飘歌 2021-02-14 19:05

Here is the code:

a=tf.Variable([[1,2,3,4]])
b=tf.Variable([[1,1,1,1]])
def error(a,b):
    xa=tf.math.maximum(a[0:,0:1],b[0:,0:1])
    ya=tf.math.maximum(a[0:,1:         


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