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