Stay organized with collections
Save and categorize content based on your preferences.
#include <candidate_sampling_ops.h>
Optional attribute setters for UniformCandidateSampler.
Summary
Public functions
|
Seed(int64 x)
|
If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed.
|
Seed2(int64 x)
|
An second seed to avoid seed collision.
|
Public attributes
Public functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::UniformCandidateSampler::Attrs Struct Reference\n\ntensorflow::ops::UniformCandidateSampler::Attrs\n===============================================\n\n`#include \u003ccandidate_sampling_ops.h\u003e`\n\nOptional attribute setters for [UniformCandidateSampler](/versions/r2.14/api_docs/cc/class/tensorflow/ops/uniform-candidate-sampler#classtensorflow_1_1ops_1_1_uniform_candidate_sampler).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------|---------|\n| [seed2_](#structtensorflow_1_1ops_1_1_uniform_candidate_sampler_1_1_attrs_1ad12d6aeba80f1d7b9377cf01ff1f6023)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_uniform_candidate_sampler_1_1_attrs_1ae3e12595a5e546d6b99d2da8be2c2ac9)` = 0` | `int64` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#structtensorflow_1_1ops_1_1_uniform_candidate_sampler_1_1_attrs_1ad8168ba9cd9ea3cabb9adecdb8b83303)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/uniform-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_uniform_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_uniform_candidate_sampler_1_1_attrs_1a8db47fe169f1f7b3b7141fd6b00dfad9)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/uniform-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_uniform_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::UniformCandidateSampler::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::UniformCandidateSampler::Attrs::seed_ = 0\n``` \n\nPublic functions\n----------------\n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::UniformCandidateSampler::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::UniformCandidateSampler::Attrs::Seed2(\n int64 x\n)\n``` \nAn second seed to avoid seed collision.\n\nDefaults to 0"]]