How to convert 1D tensor into a scalar value inside the graph?

前端 未结 0 984
一个人的身影
一个人的身影 2021-02-07 16:11

I need to convert 1d tensor of shape (1,) into scalar 1 or () in tensorflow to use in tf.cond.

But the problem is in tf.cond(number

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