टेंसरफ़्लो:: ऑप्स:: इकट्ठा करना
#include <array_ops.h>
indices
के अनुसार params
से स्लाइस इकट्ठा करें।
सारांश
indices
किसी भी आयाम (आमतौर पर 0-डी या 1-डी) का एक पूर्णांक टेंसर होना चाहिए। आकार सूचकांकों के साथ एक आउटपुट टेंसर का उत्पादन करता है। आकार 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
में मान हमेशा सीमा के भीतर होने के लिए मान्य होते हैं। यदि 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) |
स्ट्रक्चर्स | |
---|---|
tensorflow:: ops:: Gather:: Attrs | इकट्ठा करने के लिए वैकल्पिक विशेषता बसती है। |
सार्वजनिक गुण
संचालन
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 )