Spec-Zone.ru › TensorFlow C++ 2.9

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/versions/r2.9/api_docs/cc/class/tensorflow/ops/real

Spec-Zone.ru

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