จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: LearnedUnigramCandidateSampler:: คุณสมบัติ
#include <candidate_sampling_ops.h>
ตัวตั้งค่าแอตทริบิวต์ทางเลือกสำหรับ LearnedUnigramCandidateSampler
สรุป
งานสาธารณะ |
---|
Seed (int64 x) | หากเมล็ดพืชหรือเมล็ดพืช2 ถูกตั้งค่าไม่เป็นศูนย์ เครื่องกำเนิดตัวเลขสุ่มจะถูกเพาะโดยเมล็ดที่ให้มา |
Seed2 (int64 x) | เมล็ดที่สองเพื่อหลีกเลี่ยงการชนกันของเมล็ด |
คุณลักษณะสาธารณะ
เมล็ดพันธุ์2_
int64 tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::seed2_ = 0
เมล็ดพืช_
int64 tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::seed_ = 0
งานสาธารณะ
เมล็ดพันธุ์
TF_MUST_USE_RESULT Attrs tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::Seed(
int64 x
)
หากเมล็ดพืชหรือเมล็ดพืช2 ถูกตั้งค่าไม่เป็นศูนย์ เครื่องกำเนิดตัวเลขสุ่มจะถูกเพาะโดยเมล็ดที่ให้มา
มิฉะนั้นจะถูกเพาะโดยเมล็ดแบบสุ่ม
ค่าเริ่มต้นเป็น 0
เมล็ดพันธุ์2
TF_MUST_USE_RESULT Attrs tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::Seed2(
int64 x
)
เมล็ดที่สองเพื่อหลีกเลี่ยงการชนกันของเมล็ด
ค่าเริ่มต้นเป็น 0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# tensorflow::ops::LearnedUnigramCandidateSampler::Attrs Struct Reference\n\ntensorflow::ops::LearnedUnigramCandidateSampler::Attrs\n======================================================\n\n`#include \u003ccandidate_sampling_ops.h\u003e`\n\nOptional attribute setters for [LearnedUnigramCandidateSampler](/versions/r2.2/api_docs/cc/class/tensorflow/ops/learned-unigram-candidate-sampler#classtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------------------------|---------|\n| [seed2_](#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1ad8e2e8e329033e50c24959c1860c2858)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1aa96c2e366ab7256a6233622c245f0b7e)` = 0` | `int64` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1a1eded3e72beecbdf071ca943bb214d82)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_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_learned_unigram_candidate_sampler_1_1_attrs_1a09b6fb797c2b0649018c97574d2f8405)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs) An second seed to avoid seed collision. |\n\nPublic attributes\n-----------------\n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::seed_ = 0\n``` \n\nPublic functions\n----------------\n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::LearnedUnigramCandidateSampler::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::LearnedUnigramCandidateSampler::Attrs::Seed2(\n int64 x\n)\n``` \nAn second seed to avoid seed collision.\n\nDefaults to 0"]]