tensorflow:: אופס:: רֵיק:: Attrs
#include <array_ops.h>
קובעי תכונות אופציונליים עבור Empty .
תַקצִיר
תכונות ציבוריות | |
---|---|
init_ = false | bool |
תפקידים ציבוריים | |
---|---|
Init (bool x) | TF_MUST_USE_RESULT Attrs אם True, אתחול הטנזור המוחזר עם ערך ברירת המחדל של dtype. |
תכונות ציבוריות
init_
bool tensorflow::ops::Empty::Attrs::init_ = false
תפקידים ציבוריים
איניט
TF_MUST_USE_RESULT Attrs tensorflow::ops::Empty::Attrs::Init( bool x )
אם True, אתחול הטנזור המוחזר עם ערך ברירת המחדל של dtype.
אחרת, היישום חופשי לא לאתחל את תוכן הטנזור.
ברירת המחדל ל-false
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# tensorflow::ops::Empty::Attrs Struct Reference\n\ntensorflow::ops::Empty::Attrs\n=============================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [Empty](/versions/r2.0/api_docs/cc/class/tensorflow/ops/empty#classtensorflow_1_1ops_1_1_empty).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------|--------|\n| [init_](#structtensorflow_1_1ops_1_1_empty_1_1_attrs_1adb5b1a4761d83ec50f0912bcb08f1293)` = false` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Init](#structtensorflow_1_1ops_1_1_empty_1_1_attrs_1a96c0e1654265db0e2bf14017a289eb09)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/empty/attrs#structtensorflow_1_1ops_1_1_empty_1_1_attrs) If True, initialize the returned tensor with the default value of dtype. |\n\nPublic attributes\n-----------------\n\n### init_\n\n```scdoc\nbool tensorflow::ops::Empty::Attrs::init_ = false\n``` \n\nPublic functions\n----------------\n\n### Init\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Empty::Attrs::Init(\n bool x\n)\n``` \nIf True, initialize the returned tensor with the default value of dtype.\n\nOtherwise, the implementation is free not to initializethe tensor's content.\n\nDefaults to false"]]