#include <candidate_sampling_ops.h>
Optional attribute setters for AllCandidateSampler.
Public attributes | |
---|---|
seed2_ = 0 | int64 |
seed_ = 0 | int64 |
Public functions | |
---|---|
Seed(int64 x) | TF_MUST_USE_RESULT Attrs If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed. |
Seed2(int64 x) | TF_MUST_USE_RESULT Attrs An second seed to avoid seed collision. |
int64 tensorflow::ops::AllCandidateSampler::Attrs::seed2_ = 0
int64 tensorflow::ops::AllCandidateSampler::Attrs::seed_ = 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::AllCandidateSampler::Attrs::Seed( int64 x )
If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed.
Otherwise, it is seeded by a random seed.
Defaults to 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::AllCandidateSampler::Attrs::Seed2( int64 x )
An second seed to avoid seed collision.
Defaults to 0
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/all-candidate-sampler/attrs.html