टेंसरफ़्लो:: ऑप्स:: स्कैटरमैक्स
#include <state_ops.h>
max
ऑपरेशन का उपयोग करके विरल अद्यतनों को एक चर संदर्भ में कम करता है।
सारांश
यह ऑपरेशन
# Scalar indices ref[indices, ...] = max(ref[indices, ...], updates[...]) # Vector indices (for each i) ref[indices[i], ...] = max(ref[indices[i], ...], updates[i, ...]) # High rank indices (for each i, ..., j) ref[indices[i, ..., j], ...] = max(ref[indices[i, ..., j], ...], updates[i, ..., j, ...])गणना करता है
अद्यतन किए जाने के बाद यह ऑपरेशन ref
आउटपुट करता है। यह श्रृंखला संचालन को आसान बनाता है जिसे रीसेट मान का उपयोग करने की आवश्यकता होती है।
डुप्लिकेट प्रविष्टियों को सही ढंग से संभाला जाता है: यदि एकाधिक indices
एक ही स्थान का संदर्भ देते हैं, तो उनका योगदान संयुक्त होता है।
updates.shape = indices.shape + ref.shape[1:]
या update.shape updates.shape = []
की आवश्यकता है।
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- रेफरी: एक
Variable
नोड से होना चाहिए। - सूचकांक:
ref
के पहले आयाम में सूचकांकों का एक टेंसर। - अद्यतन: अद्यतन मानों का एक टेंसर
ref
में कम करने के लिए।
वैकल्पिक विशेषताएँ (देखें Attrs
):
- use_locking: यदि सही है, तो अपडेट लॉक द्वारा सुरक्षित किया जाएगा; अन्यथा व्यवहार अपरिभाषित है, लेकिन कम विवाद प्रदर्शित कर सकता है।
रिटर्न:
-
Output
: =ref
के समान। संचालन के लिए एक सुविधा के रूप में लौटाया गया जो अद्यतन किए जाने के बाद अद्यतन मूल्यों का उपयोग करना चाहते हैं।
निर्माता और विनाशक | |
---|---|
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMax::Attrs & attrs) |
सार्वजनिक गुण | |
---|---|
operation | |
output_ref |
सार्वजनिक समारोह | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
सार्वजनिक स्थैतिक कार्य | |
---|---|
UseLocking (bool x) |
स्ट्रक्चर्स | |
---|---|
tensorflow:: ops:: ScatterMax:: Attrs | स्कैटरमैक्स के लिए वैकल्पिक विशेषता बसती है। |
सार्वजनिक गुण
संचालन
Operation operation
आउटपुट_रेफ़
::tensorflow::Output output_ref
सार्वजनिक समारोह
स्कैटरमैक्स
ScatterMax( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
स्कैटरमैक्स
ScatterMax( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterMax::Attrs & attrs )
नोड
::tensorflow::Node * node() const
ऑपरेटर :: टेंसरफ़्लो :: इनपुट
operator::tensorflow::Input() const
ऑपरेटर :: टेंसरफ़्लो :: आउटपुट
operator::tensorflow::Output() const
सार्वजनिक स्थैतिक कार्य
लॉकिंग का प्रयोग करें
Attrs UseLocking( bool x )