সেন্সরফ্লো :: অপস :: কমপ্লেক্স

#include <math_ops.h>

দুটি বাস্তব সংখ্যাকে একটি জটিল সংখ্যায় রূপান্তর করে।

সারসংক্ষেপ

একটি টেন্সর দেওয়া real একটি জটিল সংখ্যা বাস্তব অংশ প্রতিনিধিত্বমূলক, এবং একটি টেন্সর imag একটি জটিল সংখ্যা কাল্পনিক অংশ প্রতিনিধিত্বমূলক, এই অপারেশন আয় জটিল সংখ্যার ফর্ম \(a + bj\), যেখানে একটা প্রতিনিধিত্ব করে elementwise 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)

স্ট্রাক্টস

টেনসরফ্লো :: অপ্স :: কমপ্লেক্স :: অ্যাটার্স

কমপ্লেক্সের জন্য .চ্ছিক বৈশিষ্ট্য নির্ধারক।

জনসাধারণের গুণাবলী

অপারেশন

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
)