تينسورفلو :: العمليات :: بينكونت
#include <math_ops.h>
تحسب عدد تكرارات كل قيمة في مصفوفة عدد صحيح.
ملخص
إخراج متجه size
الطول ونفس النوع مثل weights
. إذا كانت weights
فارغة ، فإن الفهرس i
يخزن عدد المرات التي يتم فيها حساب القيمة i
في arr
. إذا كانت weights
غير فارغة ، فإن الفهرس i
يخزن مجموع القيمة weights
في كل فهرس حيث تكون القيمة المقابلة في arr
هي i
.
القيم في arr
يتم تجاهل خارج النطاق [0، حجم).
الحجج:
- النطاق: كائن النطاق
- arr: int32
Tensor
. - حجم: غير سالب int32 العددية
Tensor
. - أوزان: هي int32 أو int64 أو float32 أو float64
Tensor
بنفس الشكل مثلarr
، أوTensor
بطول 0 ، وفي هذه الحالة يعمل مثل جميع الأوزان التي تساوي 1.
عائدات:
البنائين والمدمرين | |
---|---|
Bincount (const :: tensorflow::Scope & scope, :: tensorflow::Input arr, :: tensorflow::Input size, :: tensorflow::Input weights) |
السمات العامة | |
---|---|
bins | |
operation |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
السمات العامة
صناديق
::tensorflow::Output bins
عملية
Operation operation
الوظائف العامة
بينكونت
Bincount( const ::tensorflow::Scope & scope, ::tensorflow::Input arr, ::tensorflow::Input size, ::tensorflow::Input weights )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]