تينسورفلو :: العمليات :: متعدد الحدود
#include <random_ops.h>
سحب عينات من توزيع متعدد الحدود.
ملخص
الحجج:
- النطاق: كائن النطاق
- logits: 2-D التنسور مع شكل
[batch_size, num_classes]
. تمثل كل شريحة[i, :]
،:] احتمالات السجل غير الطبيعية لجميع الفئات. - عدد_العينات: 0-D. عدد العينات المستقلة المطلوب رسمها لكل شريحة صف.
السمات الاختيارية (انظر Attrs
):
- البذرة: إذا تم ضبط البذرة أو البذرة 2 على أن تكون غير صفرية ، فإن مولد الرقم العشوائي الداخلي يتم بذره بواسطة البذرة المحددة. خلاف ذلك ، يتم استخدام بذرة عشوائية.
- seed2: بذرة ثانية لتجنب اصطدام البذور.
عائدات:
-
Output
: 2-D التنسور مع شكل[batch_size, num_samples]
. تحتوي كل شريحة[i, :]
[0, num_classes)
[i, :]
على تسميات الفئة المرسومة بنطاق[0, num_classes)
.
البنائين والمدمرين | |
---|---|
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples) | |
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples, const Multinomial::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
OutputDtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) |
الهياكل | |
---|---|
tensorflow :: العمليات :: متعدد الحدود :: Attrs | محددات السمات الاختيارية لـ Multinomial . |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::Output output
الوظائف العامة
متعدد الحدود
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples )
متعدد الحدود
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples, const Multinomial::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
نوع الإخراج
Attrs OutputDtype( DataType x )
بذرة
Attrs Seed( int64 x )
البذور 2
Attrs Seed2( int64 x )
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"
}]