تينسورفلو :: العمليات :: SparseSoftmaxCrossEntropyWithLogits
#include <nn_ops.h>
يحسب تكلفة softmax cross entropy والتدرجات للرجوع للخلف.
ملخص
على عكس SoftmaxCrossEntropyWithLogits
، لا تقبل هذه العملية مصفوفة من احتمالات التسمية ، بل تسمية واحدة لكل صف من الميزات. تعتبر هذه التسمية ذات احتمال 1.0 للصف المحدد.
المدخلات هي السجلات وليست الاحتمالات.
الحجج:
- النطاق: كائن النطاق
- الميزات: حجم_الدفعة × عدد_الفصول المصفوفة
- الملصقات: متجه_حجم_الدفعة مع القيم الموجودة في [0 ، عدد_الفئات). هذا هو الملصق الخاص بإدخال minibatch المحدد.
عائدات:
- خسارة
Output
: لكل مثال خسارة (متجه_حجم_الدفعة). - backprop
Output
: التدرجات backpropagated (الدفعة_الحجم × عدد_المصفوفة).
البنائين والمدمرين | |
---|---|
SparseSoftmaxCrossEntropyWithLogits (const :: tensorflow::Scope & scope, :: tensorflow::Input features, :: tensorflow::Input labels) |
السمات العامة | |
---|---|
backprop | |
loss | |
operation |
السمات العامة
backprop
::tensorflow::Output backprop
خسارة
::tensorflow::Output loss
عملية
Operation operation
الوظائف العامة
SparseSoftmaxCrossEntropyWithLogits
SparseSoftmaxCrossEntropyWithLogits( const ::tensorflow::Scope & scope, ::tensorflow::Input features, ::tensorflow::Input labels )
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"
}]