tensorflow:: ops:: DenseBincount

#include <math_ops.h>

एक पूर्णांक सरणी में प्रत्येक मान की उपस्थिति की संख्या की गणना करता है।

सारांश

आउटपुट में size लंबाई और weights के समान डेटाटाइप वाला एक वेक्टर होता है। यदि weights खाली है, तो इंडेक्स i में arr में i मान की गिनती की संख्या संग्रहीत होती है। यदि weights खाली नहीं है, तो इंडेक्स i में उन सभी इंडेक्स पर weights में मौजूद मानों का योग संग्रहीत होता है जहां arr में संबंधित मान i होता है।

arr में [0, आकार) सीमा से बाहर के मानों को अनदेखा किया जाता है।

तर्क:

  • स्कोप: एक स्कोप ऑब्जेक्ट
  • इनपुट: 1D या 2D इंट Tensor ।
  • आकार: गैर-ऋणात्मक पूर्णांक अदिश Tensor ।
  • weights: एक int32, int64, float32, या float64 Tensor है जिसका आकार arr के समान है, या एक लंबाई-0 Tensor , इस मामले में यह सभी भारों को 1 के बराबर मानता है।

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

  • binary_output: bool; क्या कर्नेल को उपस्थिति या घटनाओं की संख्या गिननी चाहिए।

प्रतिफल:

  • Output : size के बराबर लंबाई वाला 1D Tensor या [बैच_आकार, size ] के बराबर लंबाई वाला 2D Tensor । [0, आकार] सीमा में प्रत्येक मान के लिए गणना या योग भार।

कंस्ट्रक्टर और डिस्ट्रक्टर

DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights)
DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights, const DenseBincount::Attrs & attrs)

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

operation
output

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

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

सार्वजनिक स्थैतिक फ़ंक्शन

BinaryOutput (bool x)

संरचनाएँ

टेन्सरफ्लो::ऑप्स::डेन्सबिनकाउंट::एट्रिब्यूट्स

DenseBincount के लिए वैकल्पिक विशेषता निर्धारक।

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

संचालन

Operation operation

आउटपुट

::tensorflow::Output output

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

डेंसबिनकाउंट

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

डेंसबिनकाउंट

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const DenseBincount::Attrs & attrs
)

नोड

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

सार्वजनिक स्थैतिक फ़ंक्शन

बाइनरीआउटपुट

Attrs BinaryOutput(
  bool x
)