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

#include <state_ops.h>

min ऑपरेशन का उपयोग करके विरल अद्यतनों को एक चर संदर्भ में कम करता है।

सारांश

यह ऑपरेशन

# Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])

# Vector indices (for each i)
ref[indices[i], ...] = min(ref[indices[i], ...], updates[i, ...])

# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] = min(ref[indices[i, ..., j], ...], updates[i, ..., j, ...])
की गणना करता है

अपडेट होने के बाद यह ऑपरेशन ref आउटपुट करता है। इससे उन परिचालनों को श्रृंखलाबद्ध करना आसान हो जाता है जिनके लिए रीसेट मान का उपयोग करने की आवश्यकता होती है।

डुप्लिकेट प्रविष्टियों को सही ढंग से प्रबंधित किया जाता है: यदि एकाधिक indices एक ही स्थान को संदर्भित करते हैं, तो उनका योगदान संयोजित होता है।

updates.shape = indices.shape + ref.shape[1:] या updates.shape = [] की आवश्यकता है।

तर्क:

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

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

  • उपयोग_लॉकिंग: यदि सत्य है, तो अद्यतन लॉक द्वारा सुरक्षित रहेगा; अन्यथा व्यवहार अपरिभाषित है, लेकिन कम विवाद प्रदर्शित कर सकता है।

रिटर्न:

  • Output : = ref के समान। उन परिचालनों के लिए एक सुविधा के रूप में लौटाया गया जो अद्यतन होने के बाद अद्यतन मानों का उपयोग करना चाहते हैं।

निर्माता और विध्वंसक

ScatterMin (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates)
ScatterMin (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMin::Attrs & attrs)

सार्वजनिक गुण

operation
output_ref

सार्वजनिक समारोह

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

सार्वजनिक स्थैतिक कार्य

UseLocking (bool x)

संरचनाएँ

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

ScatterMin के लिए वैकल्पिक विशेषता सेटर्स।

सार्वजनिक गुण

संचालन

Operation operation

आउटपुट_रेफ

::tensorflow::Output output_ref

सार्वजनिक समारोह

स्कैटरमिन

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

स्कैटरमिन

 ScatterMin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterMin::Attrs & attrs
)

नोड

::tensorflow::Node * node() const 

ऑपरेटर::टेन्सरफ़्लो::इनपुट

 operator::tensorflow::Input() const 

ऑपरेटर::टेन्सरफ़्लो::आउटपुट

 operator::tensorflow::Output() const 

सार्वजनिक स्थैतिक कार्य

लॉकिंग का उपयोग करें

Attrs UseLocking(
  bool x
)