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

#include <math_ops.h>

DstT এর y থেকে SrcT টাইপের x কাস্ট করুন

সারসংক্ষেপ

যুক্তি:

রিটার্ন:

  • Output : y টেনসর।

কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর

Cast (const :: tensorflow::Scope & scope, :: tensorflow::Input x, DataType DstT)
Cast (const :: tensorflow::Scope & scope, :: tensorflow::Input x, DataType DstT, const Cast::Attrs & attrs)

পাবলিক বৈশিষ্ট্য

operation
y

পাবলিক ফাংশন

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

পাবলিক স্ট্যাটিক ফাংশন

Truncate (bool x)

কাঠামো

tensorflow:: ops:: Cast:: Attrs

কাস্টের জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।

পাবলিক বৈশিষ্ট্য

অপারেশন

Operation operation

y

::tensorflow::Output y

পাবলিক ফাংশন

কাস্ট

 Cast(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  DataType DstT
)

কাস্ট

 Cast(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  DataType DstT,
  const Cast::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

ছাঁটা

Attrs Truncate(
  bool x
)