تينسورفلو :: العمليات :: الهوية
#include <array_ops.h>
تُرجع قائمة الموترات بنفس أشكال ومحتويات الإدخال.
ملخص
موتر.
يمكن استخدام هذا المرجع لتجاوز التدرج اللوني للوظائف المعقدة. على سبيل المثال ، افترض أن y = f (x) ونرغب في تطبيق دالة مخصصة g لـ backprop مثل أن dx = g (dy). في بايثون
with tf.get_default_graph().gradient_override_map( {'IdentityN': 'OverrideGradientWithG'}): y, _ = identity_n([f(x), x])
.RegisterGradient('OverrideGradientWithG') def ApplyG(op, dy, _): return [None, g(dy)] # Do not backprop to f(x).
الحجج:
- النطاق: كائن النطاق
عائدات:
-
OutputList
: موتر الإخراج.
البنائين والمدمرين | |
---|---|
IdentityN (const :: tensorflow::Scope & scope, :: tensorflow::InputList input) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
operator[] (size_t index) const |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::OutputList output
الوظائف العامة
الهوية
IdentityN( const ::tensorflow::Scope & scope, ::tensorflow::InputList input )
المشغل أو العامل[]
::tensorflow::Output operator[]( size_t index ) const
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-08-30 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]