/
envoy.istio
/
mindspore
Обзор
Документация
Войти
/
envoy.istio
/
mindspore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/api/api_python/ops/mindspore.ops.func_less.rst
24 строки
1 KB
luochao
modify doc of one of input is tensor
20 дек 2023, 11:22
20 дек 2023, 11:22
272ffa7
Код
Авторство
О чём код?
mindspore.ops.less =================== .. py:function:: mindspore.ops.less(input, other) 逐元素计算 :math:`input < other` ,返回为bool。 `input` 和 `other` 的输入遵循隐式类型转换规则,使数据类型一致。输入必须是两个Tensor或一个Tensor和一个Scalar。当输入是一个Tensor和一个Scalar时,Scalar只能是一个常量。 .. math:: out_{i} =\begin{cases} & \text{True, if } input_{i}<other_{i} \\ & \text{False, if } input_{i}>=other_{i} \end{cases} 参数: - **input** (Union[Tensor, Number, bool]) - 第一个输入,为数值型,或bool,或数据类型为数值型或bool的Tensor。 - **other** (Union[Tensor, Number, bool]) - 第二个输入,为数值型,或bool,或数据类型为数值型或bool的Tensor。 返回: Tensor,输出shape与广播后的shape相同,数据类型为bool。 异常: - **TypeError** - 如果 `input` 和 `other` 不是以下之一:Tensor、数值型、bool。