Home
last modified time | relevance | path

Searched defs:num_sampled (Results 1 – 17 of 17) sorted by relevance

/third_party/mindspore/mindspore-src/source/tests/st/ops/gpu/
Dtest_uniform_candidate_sampler_op.py25 def __init__(self, num_true, num_sampled, unique, range_max): argument
34 def uniform_candidate_sampler(x, num_true, num_sampled, unique, range_max): argument
42 def uniform_candidate_sampler_int64(x, num_true, num_sampled, unique, range_max): argument
52 def __init__(self, num_true, num_sampled, unique, range_max, seed, remove_accidental_hits): argument
62 def uniform_candidate_sampler_hit(x, num_true, num_sampled, unique, range_max, seed, argument
/third_party/mindspore/mindspore-src/source/tests/st/ops/cpu/
Dtest_uniform_candidate_sampler_op.py25 def __init__(self, num_true, num_sampled, unique, range_max): argument
34 def uniform_candidate_sampler(x, num_true, num_sampled, unique, range_max): argument
42 def uniform_candidate_sampler_int64(x, num_true, num_sampled, unique, range_max): argument
52 def __init__(self, num_true, num_sampled, unique, range_max, seed, remove_accidental_hits): argument
62 def uniform_candidate_sampler_hit(x, num_true, num_sampled, unique, range_max, seed, argument
Dtest_candidate_sampler_op.py29 def __init__(self, num_true, num_sampled, unique, range_max): argument
37 def uniform_candidate_sampler(x, num_true, num_sampled, unique, range_max): argument
48 def uniform_candidate_sampler_int64(x, num_true, num_sampled, unique, range_max): argument
55 def __init__(self, num_true, num_sampled, unique, range_max, seed, remove_accidental_hits): argument
68 def uniform_candidate_sampler_hit(x, num_true, num_sampled, unique, range_max, seed, remove_acciden… argument
294 def uniform_candidate_sampler_vmap(x, num_true, num_sampled, unique, range_max, in_axes, out_axes=0… argument
334 def uniform_candidate_sampler_vmap2_int64(x, num_true, num_sampled, unique, range_max, in_axes, out… argument
/third_party/mindspore/mindspore-src/source/mindspore/core/ops/
Dlog_uniform_candidate_sampler.cc42 void LogUniformCandidateSampler::Init(int64_t num_true, int64_t num_sampled, bool unique, int64_t r… in Init()
56 int64_t num_sampled = GetValue<int64_t>(primitive->GetAttr(kNumSampled)); in InferShape() local
Duniform_candidate_sampler.cc89 int64_t num_sampled = GetValue<int64_t>(primitive->GetAttr("num_sampled")); in UCSInferShape() local
138 void UniformCandidateSampler::Init(int64_t num_true, int64_t num_sampled, bool unique, int64_t rang… in Init()
151 void UniformCandidateSampler::set_num_sampled(int64_t num_sampled) { in set_num_sampled()
Dlog_uniform_candidate_sampler.h57 …inline void set_num_sampled(int64_t num_sampled) { (void)this->AddAttr(kNumSampled, api::MakeValue… in set_num_sampled()
/third_party/mindspore/mindspore-src/source/tests/ut/python/parallel/
Dtest_uniform_candidate_sampler.py31 …def __init__(self, embedding_weight, num_true, num_sampled, unique, range_max, seed, remove_accide… argument
56 … def __init__(self, mul_weight, num_true, num_sampled, unique, range_max, seed, remove_accidential, argument
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/gpu/kernel/cuda_impl/cuda_ops/
Duniform_candidate_sampler_impl.cu27 cudaError_t CalUniformCandidateSampler(const int64_t true_size, const int64_t num_sampled, const S … in CalUniformCandidateSampler()
/third_party/mindspore/mindspore-src/source/tests/st/ops/ascend/test_aicpu_ops/
Dtest_uniform_candidate_sampler.py27 def __init__(self, true_classes, num_true, num_sampled, unique, range_max, seed): argument
Dtest_log_uniform_candidate_sampler.py26 def __init__(self, num_true=1, num_sampled=5, unique=True, range_max=5, seed=0): argument
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/cpu/kernel/
Dlog_uniform_candidate_sampler_cpu_kernel.cc55 static float CalcExpectedCount(float p, int num_sampled, int num_tries) { in CalcExpectedCount()
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/ops/operations/
Drandom_ops.py1056 …def __init__(self, num_true, num_sampled, unique, range_max, seed=0, remove_accidental_hits=False): argument
1128 def __init__(self, num_true=1, num_sampled=5, unique=True, range_max=5, seed=0): argument
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/ops/function/
Drandom_func.py411 num_sampled, argument
579 def log_uniform_candidate_sampler(true_classes, num_true=1, num_sampled=5, unique=True, range_max=5… argument
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dhashtablez_sampler_test.cc219 int64_t num_sampled = 0; in TEST() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/customize/op_proto/
Drandom_ops_proto.cc213 int64_t num_sampled; in CUST_IMPLEMT_INFERFUNC() local
/third_party/protobuf/src/google/protobuf/
Darenaz_sampler_test.cc235 int64_t num_sampled = 0; in TEST() local
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/nn/loss/
Dloss.py1044 def __init__(self, num_sampled, num_classes, num_true=1, argument