tensorflow:: ops:: Gather

#include <array_ops.h>

indices অনুযায়ী params থেকে স্লাইস সংগ্রহ করুন ।

সারসংক্ষেপ

indices অবশ্যই যেকোনো ডাইমেনশনের (সাধারণত 0-D বা 1-D) একটি ইন্টিজার টেনসর হতে হবে। indices.shape + params.shape[1:] আকারের একটি আউটপুট টেনসর তৈরি করে যেখানে:

    # Scalar indices
    output[:, ..., :] = params[indices, :, ... :]

    # Vector indices
    output[i, :, ..., :] = params[indices[i], :, ... :]

    # Higher rank indices
    output[i, ..., j, :, ... :] = params[indices[i, ..., j], :, ..., :]

যদি indices একটি বিন্যাস হয় এবং len(indices) == params.shape[0] তাহলে এই অপারেশনটি সেই অনুযায়ী params বিন্যস্ত করবে।

validate_indices : অপ্রচলিত। এই অপারেশনটি সিপিইউ-তে নির্ধারিত হলে, indices মানগুলো সর্বদা সীমার মধ্যে আছে কিনা তা যাচাই করা হয়। জিপিইউ-তে নির্ধারিত হলে, সীমার বাইরের ইনডেক্সগুলো নিরাপদ কিন্তু অনির্দিষ্ট আচরণের জন্ম দেয়, যার মধ্যে একটি ত্রুটি দেখানোও অন্তর্ভুক্ত থাকতে পারে।

যুক্তি:

ফেরত:

  • Output : আউটপুট টেনসর।

নির্মাতা এবং ধ্বংসকারী

Gather (const :: tensorflow::Scope & scope, :: tensorflow::Input params, :: tensorflow::Input indices)
Gather (const :: tensorflow::Scope & scope, :: tensorflow::Input params, :: tensorflow::Input indices, const Gather::Attrs & attrs)

জনসাধারণের বৈশিষ্ট্য

operation
output

জনসাধারণের কার্যাবলী

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

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

ValidateIndices (bool x)

কাঠামো

tensorflow:: ops:: Gather:: Attrs

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

জনসাধারণের বৈশিষ্ট্য

অপারেশন

Operation operation

আউটপুট

::tensorflow::Output output

জনসাধারণের কার্যাবলী

সংগ্রহ করুন

 Gather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input params,
  ::tensorflow::Input indices
)

সংগ্রহ করুন

 Gather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input params,
  ::tensorflow::Input indices,
  const Gather::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

সূচক যাচাই করুন

Attrs ValidateIndices(
  bool x
)