تينسورفلو :: العمليات :: يحول
#include <control_flow_ops.h>
pred
توجيه data
إلى منفذ الإخراج المحدد بواسطة pred
.
ملخص
إذا كانت كلمة pred
صحيحة ، output_true
إعادة توجيه إدخال data
إلى output_true
. خلاف ذلك ، تنتقل البيانات إلى output_false
.
راجع أيضًا RefSwitch
و Merge
.
الحجج:
- النطاق: كائن النطاق
- البيانات: الموتر الذي سيتم إعادة توجيهه إلى الإخراج المناسب.
- pred: مقياس يحدد منفذ الإخراج الذي سيستقبل البيانات.
عائدات:
-
Output
output_false: إذا كانتpred
خاطئة ، فسيتم إعادة توجيه البيانات إلى هذا الإخراج. -
Output
output_true: إذا كانتpred
صحيحة ، فسيتم إعادة توجيه البيانات إلى هذا الإخراج.
البنائين والمدمرين | |
---|---|
Switch (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input pred) |
السمات العامة | |
---|---|
operation | |
output_false | |
output_true |
السمات العامة
عملية
Operation operation
output_false
::tensorflow::Output output_false
الإخراج_ الصحيح
::tensorflow::Output output_true
الوظائف العامة
يحول
Switch( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input pred )
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"
}]