টেনসরফ্লো :: অপস:: জটিল
#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]]
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
রিটার্ন:
-
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) |
পাবলিক বৈশিষ্ট্য | |
|---|---|
operation | |
out | |
পাবলিক ফাংশন | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
Tout (DataType x) | |
কাঠামো | |
|---|---|
| tensorflow:: ops:: Complex:: Attrs | কমপ্লেক্সের জন্য ঐচ্ছিক বৈশিষ্ট্য নির্ধারণকারী। |
পাবলিক বৈশিষ্ট্য
অপারেশন
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
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
টাউট
Attrs Tout( DataType x )