tensorflow::ops::Range
#include <math_ops.h>
Создаёт последовательность чисел.
Summary
Данная операция создаёт последовательность чисел, начинающуюся с start и увеличивающуюся с шагом delta до, но не включая, limit.
Например:
# 'start' is 3 # 'limit' is 18 # 'delta' is 3 tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15]
Аргументы:
- scope: Объект Scope
- start: 0-D (скаляр). Первый элемент последовательности.
- limit: 0-D (скаляр). Верхняя граница последовательности (исключительно).
- delta: 0-D (скаляр). Необязательно. По умолчанию 1. Значение, на которое увеличивается
start.
Возвращает:
-
Output: 1-D.
| Конструкторы и деструкторы | |
|---|---|
Range(const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input limit, ::tensorflow::Input delta) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Общедоступные функции
Range
Range( const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input limit, ::tensorflow::Input delta )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/range