創建一個數字序列。
用法
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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
