جریان تنسور:: عملیات:: مجتمع
#include <math_ops.h>
دو عدد واقعی را به عدد مختلط تبدیل می کند.
خلاصه
با در نظر گرفتن یک تانسور real
که بخش واقعی یک عدد مختلط را نشان می دهد، و یک imag
تانسوری که قسمت خیالی یک عدد مختلط را نشان می دهد، این عمل اعداد مختلط را به صورت عنصری برمی گرداند. \(a + bj\)که در آن a نمایانگر قسمت real
و b نمایانگر قسمت imag
است.
تانسورهای ورودی real
و imag
باید یک شکل باشند.
به عنوان مثال:
# tensor 'real' is [2.25, 3.25] # tensor `imag` is [4.75, 5.75] tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
استدلال ها:
- scope: یک شی Scope
برمی گرداند:
-
Output
: تانسور خروجی
سازندگان و ویرانگرها | |
---|---|
Complex (const :: tensorflow::Scope & scope, :: tensorflow::Input real, :: tensorflow::Input imag) | |
Complex (const :: tensorflow::Scope & scope, :: tensorflow::Input real, :: tensorflow::Input imag, const Complex::Attrs & attrs) |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
سازه ها | |
---|---|
tensorflow:: ops:: Complex:: Attrs | تنظیم کننده های ویژگی اختیاری برای Complex . |
صفات عمومی
عملیات
Operation operation
بیرون
::tensorflow::Output out
توابع عمومی
مجتمع
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
مجتمع
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
تاوت
Attrs Tout( DataType x )