Home
last modified time | relevance | path

Searched refs:seed2 (Results 1 – 25 of 61) sorted by relevance

123

/third_party/mindspore/tests/st/ops/cpu/
Dtest_uniform_real.py25 def __init__(self, shape, seed=0, seed2=0): argument
29 self.seed2 = seed2
30 self.uniformreal = P.UniformReal(seed, seed2)
41 seed2 = 10
43 net = Net(shape, seed, seed2)
49 seed2 = 10
51 net = Net(shape, seed, seed2)
59 seed2 = 0
61 net = Net(shape, seed, seed2)
Dtest_standard_normal.py25 def __init__(self, shape, seed=0, seed2=0): argument
29 self.seed2 = seed2
30 self.stdnormal = P.StandardNormal(seed, seed2)
41 seed2 = 10
43 net = Net(shape, seed, seed2)
49 seed2 = 10
51 net = Net(shape, seed, seed2)
59 seed2 = 0
61 net = Net(shape, seed, seed2)
Dtest_uniform_int.py27 def __init__(self, shape, seed=0, seed2=0): argument
33 self.seed2 = seed2
34 self.uniformint = P.UniformInt(seed, seed2)
45 seed2 = 10
47 net = Net(shape, seed, seed2)
53 seed2 = 10
55 net = Net(shape, seed, seed2)
63 seed2 = 0
65 net = Net(shape, seed, seed2)
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Drandom_op_impl.cu54 void StandardNormal(int seed, int seed2, curandState *globalState, T *output, size_t count, cudaStr… in StandardNormal() argument
57 if (seed2 != 0) { in StandardNormal()
58 RNG_seed = seed2; in StandardNormal()
69 bool UniformInt(int seed, int seed2, curandState *globalState, T *input1, size_t input_size_1, in UniformInt() argument
73 if (seed2 != 0) { in UniformInt()
74 RNG_seed = seed2; in UniformInt()
89 void UniformReal(int seed, int seed2, curandState *globalState, T *output, size_t count, cudaStream… in UniformReal() argument
92 if (seed2 != 0) { in UniformReal()
93 RNG_seed = seed2; in UniformReal()
103 template void StandardNormal<float>(int seed, int seed2, curandState *globalState,
[all …]
Drandom_op_impl.cuh25 void StandardNormal(int seed, int seed2, curandState *globalState,
28 bool UniformInt(int seed, int seed2, curandState *globalState,
32 void UniformReal(int seed, int seed2, curandState *globalState,
/third_party/mindspore/mindspore/ops/composite/
Drandom_ops.py79 seed1, seed2 = _get_seed(seed, "normal")
80 stdnormal = P.StandardNormal(seed1, seed2)
126 seed1, seed2 = _get_seed(seed, "laplace")
127 stdlaplace = P.StandardLaplace(seed1, seed2)
192 seed1, seed2 = _get_seed(seed, "uniform")
194 random_uniform = P.UniformInt(seed1, seed2)
197 uniform_real = P.UniformReal(seed1, seed2)
273 seed1, seed2 = _get_seed(seed, "gamma")
274 random_gamma = P.Gamma(seed1, seed2)
322 seed1, seed2 = _get_seed(seed, "poisson")
[all …]
/third_party/mindspore/tests/st/ops/ascend/test_aicpu_ops/
Dtest_standard_laplace.py24 def __init__(self, shape, seed=0, seed2=0): argument
28 self.seed2 = seed2
29 self.stdlaplace = P.StandardLaplace(seed, seed2)
37 seed2 = 10
39 net = Net(shape, seed, seed2)
Dtest_standard_normal.py24 def __init__(self, shape, seed=0, seed2=0): argument
28 self.seed2 = seed2
29 self.stdnormal = P.StandardNormal(seed, seed2)
37 seed2 = 10
39 net = Net(shape, seed, seed2)
Dtest_gamma.py27 def __init__(self, shape, seed=0, seed2=0): argument
29 self.gamma = P.Gamma(seed=seed, seed2=seed2)
/third_party/mindspore/tests/st/ops/gpu/
Dtest_standard_normal.py25 def __init__(self, shape, seed=0, seed2=0): argument
29 self.seed2 = seed2
30 self.stdnormal = P.StandardNormal(seed, seed2)
40 seed2 = 10
42 net = Net(shape, seed, seed2)
/third_party/boost/libs/container_hash/test/
Dhash_fwd_test_1.cpp42 std::size_t seed2 = 0; in fwd_test2() local
43 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, std::string("Test1")); in fwd_test2()
44 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, std::string("Test2")); in fwd_test2()
50 BOOST_TEST(seed2 == hasher_test_string(y)); in fwd_test2()
75 std::size_t seed2 = in fwd_test3() local
77 BOOST_HASH_TEST_NAMESPACE::hash_range(seed2, values2.begin(), values2.end()); in fwd_test3()
83 BOOST_TEST(seed2 == hasher_test_string(y)); in fwd_test3()
Dhash_global_namespace_test.cpp83 std::size_t seed2 = 0; in custom_tests() local
84 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 50u); in custom_tests()
85 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 250u); in custom_tests()
86 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 350u); in custom_tests()
90 BOOST_TEST(seed == seed2); in custom_tests()
Dhash_custom_test.cpp82 std::size_t seed2 = 0; in custom_tests() local
83 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 50u); in custom_tests()
84 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 250u); in custom_tests()
85 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 350u); in custom_tests()
89 BOOST_TEST(seed == seed2); in custom_tests()
Dhash_friend_test.cpp85 std::size_t seed2 = 0; in custom_tests() local
86 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 50u); in custom_tests()
87 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 250u); in custom_tests()
88 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 350u); in custom_tests()
92 BOOST_TEST(seed == seed2); in custom_tests()
Dhash_built_in_array_test.cpp56 std::size_t seed2 = 0; in two_dimensional_array_test() local
58 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, array[i][j]); in two_dimensional_array_test()
59 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed1, seed2); in two_dimensional_array_test()
/third_party/mindspore/tests/st/auto_monad/
Dtest_effect_random.py193 def __init__(self, shape, seed=0, seed2=0): argument
197 self.seed2 = seed2
198 self.standard_normal = P.StandardNormal(seed, seed2)
220 def __init__(self, shape, seed=0, seed2=0): argument
224 self.seed2 = seed2
225 self.standard_laplace = P.StandardLaplace(seed, seed2)
247 def __init__(self, shape, alpha, beta, seed=0, seed2=0): argument
253 self.seed2 = seed2
254 self.gamma = P.Gamma(seed, seed2)
278 def __init__(self, shape, seed=0, seed2=0): argument
[all …]
/third_party/boost/boost/geometry/index/detail/rtree/linear/
Dredistribute_elements.hpp109 size_t & seed2) in apply()
174 seed2 = lowest_high_index; in apply()
196 size_t & seed2) in apply()
226 seed2 = highest_index; in apply()
229seed2 = (lowest_index + 1) % elements_count; // % is just in case since if this is true lowest_ind… in apply()
255 size_t & seed2) in apply()
257 … Parameters, Translator, Dimension - 1>::apply(elements, parameters, tr, separation, seed1, seed2); in apply()
268 seed2 = s2; in apply()
292 size_t & seed2) in apply()
294 find_norm_sep::apply(elements, parameters, tr, separation, seed1, seed2); in apply()
[all …]
/third_party/mindspore/mindspore/core/ops/
Drandom_standard_normal.cc24 void RandomStandardNormal::Init(const int64_t seed, const int64_t seed2) { in Init() argument
26 this->set_seed2(seed2); in Init()
31 void RandomStandardNormal::set_seed2(int64_t seed2) { (void)this->AddAttr(kSeed2, MakeValue(seed2))… in set_seed2() argument
Duniform_real.cc25 void UniformReal::Init(int64_t seed, int64_t seed2) { in Init() argument
27 this->set_seed2(seed2); in Init()
32 void UniformReal::set_seed2(int64_t seed2) { (void)this->AddAttr(kSeed2, MakeValue(seed2)); } in set_seed2() argument
/third_party/boost/boost/geometry/index/detail/rtree/quadratic/
Dredistribute_elements.hpp42 size_t & seed2) in pick_seeds() argument
62 seed2 = 1; in pick_seeds()
85 seed2 = j; in pick_seeds()
136 size_t seed2 = 0; in apply() local
137 quadratic::pick_seeds<box_type>(elements_copy, parameters, translator, seed1, seed2); in apply()
150 …elements2.push_back(elements_copy[seed2]); //… in apply()
155 detail::bounds(rtree::element_indexable(elements_copy[seed2], translator), in apply()
159 if (seed1 < seed2) in apply()
161 …rtree::move_from_back(elements_copy, elements_copy.begin() + seed2); // MAY… in apply()
170 …rtree::move_from_back(elements_copy, elements_copy.begin() + seed2); // MAY… in apply()
/third_party/mindspore/mindspore/ops/operations/
Drandom_ops.py62 def __init__(self, seed=0, seed2=0): argument
67 Validator.check_non_negative_int(seed2, "seed2", self.name)
119 def __init__(self, seed=0, seed2=0): argument
124 Validator.check_value_type('seed2', seed2, [int], self.name)
182 def __init__(self, seed=0, seed2=0): argument
187 Validator.check_non_negative_int(seed2, "seed2", self.name)
246 def __init__(self, seed=0, seed2=0): argument
251 Validator.check_non_negative_int(seed2, "seed2", self.name)
318 def __init__(self, seed=0, seed2=0): argument
323 Validator.check_non_negative_int(seed2, "seed2", self.name)
[all …]
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/
Drandom_ops_declare.cc23 {"Seed1", ATTR_DESC(seed2, AnyTraits<int64_t>())}};
37 {"seed2", ATTR_DESC(seed2, AnyTraits<int64_t>())}};
44 {"seed2", ATTR_DESC(seed2, AnyTraits<int64_t>())}};
/third_party/boost/libs/multiprecision/test/
Dconstexpr_test_cpp_int_7.cpp82 … multiprecision_generator(std::uint64_t seed1, std::uint64_t seed2) : m_gen64(seed1, seed2) {} in multiprecision_generator()
83 …ision_generator(std::uint64_t seed1, std::uint64_t seed2, std::uint64_t seed3) : m_gen64(seed1, se… in multiprecision_generator()
/third_party/boost/boost/random/
Dadditive_combine.hpp109 typename MLCG2::result_type seed2) in additive_combine_engine() argument
110 : _mlcg1(seed1), _mlcg2(seed2) { } in additive_combine_engine()
163 typename MLCG2::result_type seed2) in seed() argument
166 _mlcg2.seed(seed2); in seed()
/third_party/mindspore/mindspore/ccsrc/pybind_api/random_normal/
Drandom_cpu_kernel.cc24 bool InitRandomNormal(std::vector<int64_t> out_shape, int64_t seed, int64_t seed2, const py::object… in InitRandomNormal() argument
44 seed = (seed == 0 && seed2 == 0) ? clock() : seed; in InitRandomNormal()
45 mindspore::PhiloxGenerator generator = mindspore::PhiloxGenerator(seed, seed2); in InitRandomNormal()

123