Tensorflow: binary mask of max values along tensor axis

后端 未结 0 1095
情话喂你
情话喂你 2021-02-04 22:57

If I have a N-dimensional tensor, I would like to create another tensor (with the same shape) of values 0 and 1, where 1 is in the same position as the maximum element in origin

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