جریان تنسور:: عملیات:: ComputeAccidentalHits:: Attrs
#include <candidate_sampling_ops.h>
تنظیم کننده های ویژگی اختیاری برای ComputeAccidentalHits .
خلاصه
صفات عمومی | |
---|---|
seed2_ = 0 | int64 |
seed_ = 0 | int64 |
توابع عمومی | |
---|---|
Seed (int64 x) | TF_MUST_USE_RESULT Attrs اگر seed یا seed2 غیر صفر باشد، مولد اعداد تصادفی توسط دانه داده شده بذر می شود. |
Seed2 (int64 x) | TF_MUST_USE_RESULT Attrs دانه دوم برای جلوگیری از برخورد دانه. |
صفات عمومی
دانه 2_
int64 tensorflow::ops::ComputeAccidentalHits::Attrs::seed2_ = 0
دانه_
int64 tensorflow::ops::ComputeAccidentalHits::Attrs::seed_ = 0
توابع عمومی
بذر
TF_MUST_USE_RESULT Attrs tensorflow::ops::ComputeAccidentalHits::Attrs::Seed( int64 x )
اگر seed یا seed2 غیر صفر باشد، مولد اعداد تصادفی توسط دانه داده شده بذر می شود.
در غیر این صورت، توسط یک بذر تصادفی بذر می شود.
پیشفرض 0 است
دانه 2
TF_MUST_USE_RESULT Attrs tensorflow::ops::ComputeAccidentalHits::Attrs::Seed2( int64 x )
دانه دوم برای جلوگیری از برخورد دانه.
پیشفرض 0 است
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::ComputeAccidentalHits::Attrs Struct Reference\n\ntensorflow::ops::ComputeAccidentalHits::Attrs\n=============================================\n\n`#include \u003ccandidate_sampling_ops.h\u003e`\n\nOptional attribute setters for [ComputeAccidentalHits](/versions/r1.15/api_docs/cc/class/tensorflow/ops/compute-accidental-hits#classtensorflow_1_1ops_1_1_compute_accidental_hits).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------|---------|\n| [seed2_](#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1a99fd3bb162e1986c80ce39b89719a1d1)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1a10c7cf573d98ea9544d254035f2fd6e3)` = 0` | `int64` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1af10a5866bca140fdc513f5f56ee46756)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_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_compute_accidental_hits_1_1_attrs_1aec5aeae0e57560e1629549e7d22a994c)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs) An second seed to avoid seed collision. |\n\nPublic attributes\n-----------------\n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::ComputeAccidentalHits::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::ComputeAccidentalHits::Attrs::seed_ = 0\n``` \n\nPublic functions\n----------------\n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ComputeAccidentalHits::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::ComputeAccidentalHits::Attrs::Seed2(\n int64 x\n)\n``` \nAn second seed to avoid seed collision.\n\nDefaults to 0"]]