टेन्सरफ्लो::ऑप्स::गैदर

#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 : अप्रचलित। यदि यह ऑपरेशन CPU को सौंपा जाता है, तो indices में मौजूद मानों की सीमा के भीतर होने की हमेशा जाँच की जाती है। यदि GPU को सौंपा जाता है, तो सीमा से बाहर के इंडेक्स के परिणामस्वरूप सुरक्षित लेकिन अनिर्दिष्ट व्यवहार होता है, जिसमें त्रुटि उत्पन्न करना भी शामिल हो सकता है।

तर्क:

प्रतिफल:

  • 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)

संरचनाएँ

टेन्सरफ्लो::ऑप्स::गैदर::एट्रिब्यूट्स

गैदर के लिए वैकल्पिक विशेषता निर्धारक।

सार्वजनिक विशेषताएँ

संचालन

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
)