Spec-Zone.ru › TensorFlow C++

tensorflow::ops::Real

#include <math_ops.h>

Возвращает действительную часть комплексного числа.

Краткое описание

Для тензора input комплексных чисел эта операция возвращает тензор типа float, содержащий действительную часть каждого элемента input. Все элементы input должны быть комплексными числами вида \(a + bj\), где a — действительная часть, возвращаемая этой операцией, а b — мнимая часть.

Например:

# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.real(input) ==> [-2.25, 3.25]

Аргументы:

  • scope: объект Scope

Возвращает:

  • Output: выходной тензор.
Конструкторы и деструкторы
Real(const ::tensorflow::Scope & scope, ::tensorflow::Input input)
Real(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Real::Attrs & attrs)
Публичные атрибуты
operation
Operation
output
::tensorflow::Output
Публичные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Публичные статические функции
Tout(DataType x)
Attrs
Структуры
tensorflow::ops::Real::Attrs

Методы установки необязательных атрибутов для Real.

Публичные атрибуты

operation

Operation operation

output

::tensorflow::Output output

Публичные функции

Real

 Real(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

Real

 Real(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const Real::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Публичные статические функции

Tout

Attrs Tout(
  DataType x
)

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/real

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API