コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦::空の::属性
#include <array_ops.h>
Emptyのオプションの属性セッター。
まとめ
パブリック属性 |
---|
init_ = false | bool |
公共機能 |
---|
Init (bool x) | True の場合、返されたテンソルを dtype のデフォルト値で初期化します。 |
パブリック属性
初期化_
bool tensorflow::ops::Empty::Attrs::init_ = false
公共機能
初期化
TF_MUST_USE_RESULT Attrs tensorflow::ops::Empty::Attrs::Init(
bool x
)
True の場合、返されたテンソルを dtype のデフォルト値で初期化します。
それ以外の場合、実装はテンソルのコンテンツを初期化しなくても構いません。
デフォルトは false
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 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.1/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.1/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"]]