تدفق التوتر:: العمليات:: QuantizedMatMul
#include <math_ops.h>
قم بإجراء عملية ضرب المصفوفة الكمية لـ a
بواسطة المصفوفة b
.
ملخص
يجب أن تكون المدخلات مصفوفات ثنائية الأبعاد ويجب أن يتطابق البعد الداخلي لـ a
(بعد تبديل موضعه إذا كان transpose_a
غير صفر) مع البعد الخارجي لـ b
(بعد تبديل موضعه إذا كان transposed_b
غير صفر).
الحجج:
- النطاق: كائن النطاق
- أ: يجب أن يكون موتر ثنائي الأبعاد.
- ب: يجب أن يكون موتر ثنائي الأبعاد.
- min_a: القيمة العائمة التي تمثل
a
الكمية الأقل. - max_a: القيمة العائمة التي تمثل أعلى
a
مكممة. - min_b: القيمة العائمة التي تمثلها أقل قيمة
b
مكممة. - max_b: القيمة العائمة التي تمثل أعلى قيمة
b
مكممة.
السمات الاختيارية (انظر Attrs
):
- transpose_a: إذا كان صحيحًا، فسيتم نقل
a
قبل الضرب. - transpose_b: إذا كان صحيحًا، فسيتم نقل
b
قبل الضرب. - التنشيط: نوع المخرجات التي تنتجها وظيفة التنشيط بعد هذه العملية.
العوائد:
-
Output
-
Output
min_out: القيمة العائمة التي تمثل أقل قيمة إخراج مكممة. -
Output
max_out: القيمة العائمة التي تمثل أعلى قيمة إخراج مكممة.
البنائين والمدمرين | |
---|---|
QuantizedMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, :: tensorflow::Input min_a, :: tensorflow::Input max_a, :: tensorflow::Input min_b, :: tensorflow::Input max_b) | |
QuantizedMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, :: tensorflow::Input min_a, :: tensorflow::Input max_a, :: tensorflow::Input min_b, :: tensorflow::Input max_b, const QuantizedMatMul::Attrs & attrs) |
الصفات العامة | |
---|---|
max_out | |
min_out | |
operation | |
out |
وظائف ثابتة العامة | |
---|---|
Tactivation (DataType x) | |
Toutput (DataType x) | |
TransposeA (bool x) | |
TransposeB (bool x) |
الهياكل | |
---|---|
Tensorflow:: ops:: QuantizedMatMul:: Attrs | محددات السمات الاختيارية لـ QuantizedMatMul . |
الصفات العامة
max_out
::tensorflow::Output max_out
min_out
::tensorflow::Output min_out
عملية
Operation operation
خارج
::tensorflow::Output out
الوظائف العامة
QuantizedMatMul
QuantizedMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b )
QuantizedMatMul
QuantizedMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b, const QuantizedMatMul::Attrs & attrs )
وظائف ثابتة العامة
التنشيط
Attrs Tactivation( DataType x )
توتبوت
Attrs Toutput( DataType x )
تبديل أ
Attrs TransposeA( bool x )
تبديل ب
Attrs TransposeB( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::QuantizedMatMul Class Reference\n\ntensorflow::ops::QuantizedMatMul\n================================\n\n`#include \u003cmath_ops.h\u003e`\n\nPerform a quantized matrix multiplication of `a` by the matrix `b`.\n\nSummary\n-------\n\nThe inputs must be two-dimensional matrices and the inner dimension of `a` (after being transposed if `transpose_a` is non-zero) must match the outer dimension of `b` (after being transposed if `transposed_b` is non-zero).\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- a: Must be a two-dimensional tensor.\n- b: Must be a two-dimensional tensor.\n- min_a: The float value that the lowest quantized `a` value represents.\n- max_a: The float value that the highest quantized `a` value represents.\n- min_b: The float value that the lowest quantized `b` value represents.\n- max_b: The float value that the highest quantized `b` value represents.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs)):\n\n- transpose_a: If true, `a` is transposed before multiplication.\n- transpose_b: If true, `b` is transposed before multiplication.\n- Tactivation: The type of output produced by activation function following this operation.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) out\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) min_out: The float value that the lowest quantized output value represents.\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) max_out: The float value that the highest quantized output value represents.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QuantizedMatMul](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a0f09b0e35ddc6a6324c65db6ec69a731)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` a, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` b, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_a, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_a, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_b, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_b)` ||\n| [QuantizedMatMul](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a882f02d4d46fa0c4ddb44a2e201929dc)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` a, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` b, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_a, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_a, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` min_b, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` max_b, const `[QuantizedMatMul::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [max_out](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1ad70908bf74ce2c40aa1f778693c60d8f) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [min_out](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a8dfe353eb1695a006f27c2cd8210b728) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1ad9abd5818d18e9d7f03c3db5ef1464ff) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [out](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a891101c5425593a778947c2a3019d4a3) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [Tactivation](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1adf046668cb84feff06bb62ac8dfe9cb9)`(DataType x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs) |\n| [Toutput](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1ab91328f7f63e496fbf14e3f2a7ca46fe)`(DataType x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs) |\n| [TransposeA](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1afbe2add319dc39e1db4dc583f556def9)`(bool x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs) |\n| [TransposeB](#classtensorflow_1_1ops_1_1_quantized_mat_mul_1a6525a94155917583356eb70dd02f1f72)`(bool x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs#structtensorflow_1_1ops_1_1_quantized_mat_mul_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QuantizedMatMul::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/quantized-mat-mul/attrs) | Optional attribute setters for [QuantizedMatMul](/versions/r2.1/api_docs/cc/class/tensorflow/ops/quantized-mat-mul#classtensorflow_1_1ops_1_1_quantized_mat_mul). |\n\nPublic attributes\n-----------------\n\n### max_out\n\n```scdoc\n::tensorflow::Output max_out\n``` \n\n### min_out\n\n```scdoc\n::tensorflow::Output min_out\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\n### out\n\n```text\n::tensorflow::Output out\n``` \n\nPublic functions\n----------------\n\n### QuantizedMatMul\n\n```gdscript\n QuantizedMatMul(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input a,\n ::tensorflow::Input b,\n ::tensorflow::Input min_a,\n ::tensorflow::Input max_a,\n ::tensorflow::Input min_b,\n ::tensorflow::Input max_b\n)\n``` \n\n### QuantizedMatMul\n\n```gdscript\n QuantizedMatMul(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input a,\n ::tensorflow::Input b,\n ::tensorflow::Input min_a,\n ::tensorflow::Input max_a,\n ::tensorflow::Input min_b,\n ::tensorflow::Input max_b,\n const QuantizedMatMul::Attrs & attrs\n)\n``` \n\nPublic static functions\n-----------------------\n\n### Tactivation\n\n```text\nAttrs Tactivation(\n DataType x\n)\n``` \n\n### Toutput\n\n```text\nAttrs Toutput(\n DataType x\n)\n``` \n\n### TransposeA\n\n```text\nAttrs TransposeA(\n bool x\n)\n``` \n\n### TransposeB\n\n```text\nAttrs TransposeB(\n bool x\n)\n```"]]