创建一个数字序列。
用法
tf.raw_ops.Range(
start, limit, delta, name=None
)参数
-
start一个Tensor。必须是以下类型之一:bfloat16,half,float32,float64,int8,int16,int32,int64,uint32。 0-D(标量)。序列中的第一个条目。 -
limit一个Tensor。必须与start具有相同的类型。 0-D(标量)。序列的上限,独占。 -
delta一个Tensor。必须与start具有相同的类型。 0-D(标量)。可选的。默认值为 1。递增start的数字。 -
name操作的名称(可选)。
返回
-
一个
Tensor。具有与start相同的类型。
此操作创建从 start 开始并以 delta 为增量扩展的数字序列,直到但不包括 limit 。
例如:
# 'start' is 3
# 'limit' is 18
# 'delta' is 3
tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15]
相关用法
- Python tf.raw_ops.RandomShuffle用法及代码示例
- Python tf.raw_ops.Rank用法及代码示例
- Python tf.raw_ops.RaggedGather用法及代码示例
- Python tf.raw_ops.RaggedCross用法及代码示例
- Python tf.raw_ops.RaggedRange用法及代码示例
- Python tf.raw_ops.ResourceScatterNdSub用法及代码示例
- Python tf.raw_ops.ReadVariableXlaSplitND用法及代码示例
- Python tf.raw_ops.ResourceScatterMul用法及代码示例
- Python tf.raw_ops.ReduceJoin用法及代码示例
- Python tf.raw_ops.RGBToHSV用法及代码示例
- Python tf.raw_ops.ResourceScatterAdd用法及代码示例
- Python tf.raw_ops.ResourceScatterMax用法及代码示例
- Python tf.raw_ops.ResourceScatterMin用法及代码示例
- Python tf.raw_ops.Real用法及代码示例
- Python tf.raw_ops.Rint用法及代码示例
- Python tf.raw_ops.Relu用法及代码示例
- Python tf.raw_ops.ReverseV2用法及代码示例
- Python tf.raw_ops.ResourceGather用法及代码示例
- Python tf.raw_ops.Reverse用法及代码示例
- Python tf.raw_ops.Reshape用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.raw_ops.Range。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
