تينسورفلو :: العمليات :: باتشماتمول
#include <math_ops.h>
يضاعف شرائح موترين على دفعات.
ملخص
يضاعف كل شرائح Tensor
x
و y
(يمكن عرض كل شريحة كعنصر من عناصر الدُفعة) ، وترتيب النتائج الفردية في موتر إخراج فردي بنفس حجم الدُفعة. يمكن تعديل كل شريحة من الشرائح الفردية اختياريًا (لتعديل مصفوفة يعني تبديلها adj_x
) قبل الضرب عن طريق ضبط علامة adj_y
إلى True
، والتي تكون افتراضيًا False
.
موتر الإدخال x
و y
هما 2-D أو أعلى بالشكل [..., r_x, c_x]
و [..., r_y, c_y]
.
موتر الإخراج هو 2-D أو أعلى مع الشكل [..., r_o, c_o]
، حيث:
r_o = c_x if adj_x else r_x c_o = r_y if adj_y else c_y
يتم حسابها على النحو التالي:
output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])
الحجج:
- النطاق: كائن النطاق
- x: 2-D أو أعلى مع الشكل
[..., r_x, c_x]
. - y: 2-D أو أعلى مع الشكل
[..., r_y, c_y]
.
السمات الاختيارية (انظر Attrs
):
- المجاور_x: إذا كان هذا
True
، فاضبط شرائحx
. افتراضات علىFalse
. - المجاور_y: إذا كان هذا
True
، فاضبط شرائحy
. افتراضات علىFalse
.
عائدات:
-
Output
: ثلاثي الأبعاد أو أعلى مع الشكل[..., r_o, c_o]
البنائين والمدمرين | |
---|---|
BatchMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y) | |
BatchMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y, const BatchMatMul::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
AdjX (bool x) | |
AdjY (bool x) |
الهياكل | |
---|---|
tensorflow :: العمليات :: BatchMatMul :: Attrs | محددات السمات الاختيارية لـ BatchMatMul . |
السمات العامة
عملية
Operation operation
انتاج
::tensorflow::Output output
الوظائف العامة
باتشماتمول
BatchMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
باتشماتمول
BatchMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y, const BatchMatMul::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
أدجكس
Attrs AdjX( bool x )
AdjY
Attrs AdjY( bool 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.