Google I/O में ट्यूनिंग के लिए धन्यवाद। मांग पर सभी सत्र देखें मांग पर देखें

टेंसरफ़्लो :: ऑप्स :: ScatterMul

#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 = []

तर्क:

  • गुंजाइश: एक स्कोप ऑब्जेक्ट
  • Ref: एक Variable नोड से होना चाहिए।
  • सूचकांक: ref के पहले आयाम में सूचकांकों का ref
  • अद्यतन: अद्यतन करने के लिए गुणा करने के लिए अद्यतन मूल्यों का ref

वैकल्पिक विशेषताएँ ( Attrs देखें):

  • use_locking: यदि सही है, तो ऑपरेशन को एक लॉक द्वारा संरक्षित किया जाएगा; अन्यथा व्यवहार अपरिभाषित है, लेकिन कम विवाद को प्रदर्शित कर सकता है।

रिटर्न:

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

संरचनाएं

टेंसोफ़्लो :: ऑप्स :: स्कैटरमुल :: एट्र्स

स्कैटरमूल के लिए वैकल्पिक विशेषता बसती है

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

ऑपरेशन

Operation operation

output_ref

::tensorflow::Output output_ref

सार्वजनिक कार्य

ScatterMul

 ScatterMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates
)

ScatterMul

 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
)