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