Python – tensorflow.math.is_non_decreasing()
TensorFlow是谷歌设计的开源Python库,用于开发机器学习模型和深度学习神经网络。
is_non_decreasing()如果x是非递减的,返回true。
语法: tensorflow.math.is_non_decreasing( x, name)
参数:
- x:它是一个数字张量。
- name(可选):它定义了该操作的名称
返回:它返回一个dtype bool的张量。
示例 1:
输出:
示例 2:
输出: