تينسورفلو :: العمليات :: تتراكم
#include <math_ops.h>
تُرجع مجموع العناصر لقائمة من الموترات.
ملخص
ينفذ tf.accumulate_n_v2
نفس العملية مثل tf.add_n
، لكنه لا ينتظر أن تكون جميع مدخلاته جاهزة قبل البدء في الجمع. يمكن أن يوفر ذلك الذاكرة إذا كانت المدخلات جاهزة في أوقات مختلفة ، نظرًا لأن الحد الأدنى من التخزين المؤقت يتناسب مع حجم الإخراج بدلاً من حجم المدخلات.
على عكس accumulate_n
الأصلية ، فإن accumulate_n_v2
قابلة للتفاضل.
Tensor
من نفس الشكل والنوع لعناصر inputs
.
الحجج:
- النطاق: كائن النطاق
- المدخلات: قائمة كائنات
Tensor
، ولكل منها نفس الشكل والنوع. - الشكل: شكل عناصر
inputs
.
عائدات:
-
Output
: مجموع موتر.
البنائين والمدمرين | |
---|---|
AccumulateNV2 (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs, PartialTensorShape shape) |
السمات العامة | |
---|---|
operation | |
sum |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
السمات العامة
عملية
Operation operation
مجموع
::tensorflow::Output sum
الوظائف العامة
تتراكم
AccumulateNV2( const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs, PartialTensorShape shape )
العقدة
::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"
}]