جریان تنسور:: عملیات:: صلیب
#include <math_ops.h>
حاصل ضرب زوجی را محاسبه کنید.
خلاصه
a
و b
باید یک شکل باشند. آنها می توانند بردارهای 3 عنصری ساده باشند، یا هر شکلی که درونی ترین بعد آن 3 باشد. در حالت دوم، هر جفت بردار 3 عنصری متناظر به طور مستقل ضرب متقابل می شوند.
استدلال ها:
- scope: یک شی Scope
- الف: تانسوری حاوی بردارهای 3 عنصری.
- b: تانسور دیگر، از همان نوع و شکل
a
.
برمیگرداند:
-
Output
: حاصل ضرب متقاطع دو به دو بردارهایa
وb
.
سازندگان و ویرانگرها | |
---|---|
Cross (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b) |
صفات عمومی | |
---|---|
operation | |
product |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
صفات عمومی
عملیات
Operation operation
محصول
::tensorflow::Output product
توابع عمومی
صلیب
Cross( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::Cross Class Reference\n\ntensorflow::ops::Cross\n======================\n\n`#include \u003cmath_ops.h\u003e`\n\nCompute the pairwise cross product.\n\nSummary\n-------\n\n`a` and `b` must be the same shape; they can either be simple 3-element vectors, or any shape where the innermost dimension is 3. In the latter case, each pair of corresponding 3-element vectors is cross-multiplied independently.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- a: A tensor containing 3-element vectors.\n- b: Another tensor, of same type and shape as `a`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): Pairwise cross product of the vectors in `a` and `b`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Cross](#classtensorflow_1_1ops_1_1_cross_1a2d0d3e2d7c97664d9580df02605d9db9)`(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)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_cross_1a00b77699cc5ca96059de9e00ba6bad3d) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [product](#classtensorflow_1_1ops_1_1_cross_1af8a37ae245753365a272a83d54cb471f) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_cross_1ac31667b61bd41cbe5ecb0c20852475d9)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_cross_1abafd2b168be8b2ceb0944b95755281eb)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_cross_1a2303acdef93919770fab13f504054c34)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### product\n\n```text\n::tensorflow::Output product\n``` \n\nPublic functions\n----------------\n\n### Cross\n\n```gdscript\n Cross(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input a,\n ::tensorflow::Input b\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]