tensorflow :: অপস:: রিসাইজ Nearest Neighbor

#include <image_ops.h>

নিকটতম প্রতিবেশী ইন্টারপোলেশন ব্যবহার করে images size পরিবর্তন করুন।

সারসংক্ষেপ

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • ছবি: আকৃতি সহ 4-ডি [batch, height, width, channels]
  • আকার: = A 1-D int32 2 উপাদানের টেনসর : new_height, new_width . ছবির জন্য নতুন আকার.

ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):

  • align_corners: সত্য হলে, ইনপুট এবং আউটপুট টেনসরের 4 কোণার পিক্সেলের কেন্দ্রগুলি সারিবদ্ধ করা হয়, কোণার পিক্সেলের মানগুলি সংরক্ষণ করে। ডিফল্ট থেকে মিথ্যা.

রিটার্ন:

  • Output : 4-D আকৃতি সহ [batch, new_height, new_width, channels]

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

ResizeNearestNeighbor (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size)
ResizeNearestNeighbor (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeNearestNeighbor::Attrs & attrs)

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

operation
resized_images

পাবলিক ফাংশন

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

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

AlignCorners (bool x)
HalfPixelCenters (bool x)

কাঠামো

tensorflow:: ops:: ResizeNearestNeighbor:: Attrs

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

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

অপারেশন

Operation operation

resized_images

::tensorflow::Output resized_images

পাবলিক ফাংশন

রিসাইজ Nearest Neighbor

 ResizeNearestNeighbor(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size
)

রিসাইজ Nearest Neighbor

 ResizeNearestNeighbor(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  const ResizeNearestNeighbor::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

সারিবদ্ধ কর্নার

Attrs AlignCorners(
  bool x
)

হাফপিক্সেল সেন্টার

Attrs HalfPixelCenters(
  bool x
)