コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦::切り詰められた通常::属性
#include <random_ops.h>
TruncatedNormalのオプションの属性セッター。
まとめ
公共機能 |
---|
Seed (int64 x) | seed またはseed2 いずれかが 0 以外に設定されている場合、乱数ジェネレータには指定されたシードがシードされます。 |
Seed2 (int64 x) | シードの衝突を避けるための 2 番目のシード。 |
パブリック属性
シード2_
int64 tensorflow::ops::TruncatedNormal::Attrs::seed2_ = 0
シード_
int64 tensorflow::ops::TruncatedNormal::Attrs::seed_ = 0
公共機能
シード
TF_MUST_USE_RESULT Attrs tensorflow::ops::TruncatedNormal::Attrs::Seed(
int64 x
)
seed
またはseed2
いずれかが 0 以外に設定されている場合、乱数ジェネレータには指定されたシードがシードされます。
それ以外の場合は、ランダム シードによってシードされます。
デフォルトは 0
シード2
TF_MUST_USE_RESULT Attrs tensorflow::ops::TruncatedNormal::Attrs::Seed2(
int64 x
)
シードの衝突を避けるための 2 番目のシード。
デフォルトは 0
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-28 UTC。
[null,null,["最終更新日 2025-07-28 UTC。"],[],[],null,["# tensorflow::ops::TruncatedNormal::Attrs Struct Reference\n\ntensorflow::ops::TruncatedNormal::Attrs\n=======================================\n\n`#include \u003crandom_ops.h\u003e`\n\nOptional attribute setters for [TruncatedNormal](/versions/r1.15/api_docs/cc/class/tensorflow/ops/truncated-normal#classtensorflow_1_1ops_1_1_truncated_normal).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|---------|\n| [seed2_](#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1a8c7d04cc1166de9126777b9501f02946)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1a7ee6c42a0dce4fa66944298387f6dd60)` = 0` | `int64` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1ac76082d120bb94c94a7774c81ed4a56a)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs) If either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed. |\n| [Seed2](#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1a0464a3146de59f0b0a808a8eb8ef97b9)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs) A second seed to avoid seed collision. |\n\nPublic attributes\n-----------------\n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::TruncatedNormal::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::TruncatedNormal::Attrs::seed_ = 0\n``` \n\nPublic functions\n----------------\n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TruncatedNormal::Attrs::Seed(\n int64 x\n)\n``` \nIf either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed.\n\nOtherwise, it is seeded by a random seed.\n\nDefaults to 0 \n\n### Seed2\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TruncatedNormal::Attrs::Seed2(\n int64 x\n)\n``` \nA second seed to avoid seed collision.\n\nDefaults to 0"]]