Home
last modified time | relevance | path

Searched refs:Mul (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dlamb_next_mv_rule_test.py20 Mul = P.Mul() variable
44 mul0 = Mul(constant_mul0_x, input4)
45 mul1 = Mul(constant_mul1_sub, input3)
47 mul2 = Mul(constant_mul2_x, input1)
48 mul3 = Mul(constant_mul3_sub1, input0)
57 real_div2 = Mul(real_div0, sqrt0)
58 mul4 = Mul(constant_mul4_x, input6)
79 mul0 = Mul(constant_mul0_x, input4)
80 mul1 = Mul(constant_mul1_sub, input3)
82 mul2 = Mul(constant_mul2_x, input1)
[all …]
Dlamb_next_mv_with_decay_rule_test.py20 Mul = P.Mul() variable
44 mul1 = Mul(constant_mul1_sub, input3)
45 mul0 = Mul(constant_mul0_x, input4)
47 mul2 = Mul(constant_mul2_x, input1)
48 mul3 = Mul(constant_mul3_sub1, input0)
56 mul4 = Mul(constant_mul4_x, input6)
58 real_div2 = Mul(real_div0, sqrt0)
81 mul1 = Mul(constant_mul1_sub, input3)
82 mul0 = Mul(constant_mul0_x, input4)
84 mul2 = Mul(constant_mul2_x, input1)
[all …]
Dadam_apply_one_fusion_test.py23 Mul = P.Mul() variable
51 mul1 = Mul(mul1_x, input0)
52 mul0 = Mul(mul0_x, input2)
53 mul2 = Mul(mul2_x, input1)
54 mul3 = Mul(mul3_x, square0)
60 mul4 = Mul(input4, true_div0)
69 mul1 = Mul(mul1_x, input0)
70 mul0 = Mul(mul0_x, input2)
71 mul2 = Mul(mul2_x, input1)
72 mul3 = Mul(mul3_x, square0)
[all …]
Dsoftmax_grad_ext_fusion.py19 Mul = P.Mul() variable
44 mul = Mul(input1, input0)
48 mul1 = Mul(input2, input1)
49 mul_grad = Mul(mul1, sub)
65 mul = Mul(input1, input0)
68 mul1 = Mul(input1, sub)
69 mul_grad = Mul(input2, mul1)
85 mul = Mul(input1, input0)
88 mul1 = Mul(input1, sub)
89 mul_grad = Mul(mul1, input2)
Dlamb_next_right_rule_test.py20 Mul = P.Mul() variable
45 mul2 = Mul(mul2_x, input1)
46 mul3 = Mul(mul3_x, square0)
48 real_div1 = Mul(add1, true_div1_recip)
58 mul2 = Mul(mul2_x, input1)
61 real_div1 = Mul(add1, true_div1_recip)
Dfused_batch_norm_fusion_test.py24 Mul = P.Mul() variable
57 mul0 = Mul(sub0, constant0)
58 mul1 = Mul(sub1, constant1)
74 mul0 = Mul(sub0, constant0)
75 mul1 = Mul(sub1, constant1)
91 mul0 = Mul(Cast(sub0, mstype.float32), constant0)
92 mul1 = Mul(Cast(sub1, mstype.float32), constant1)
Dlamb_update_with_lr_v2_test.py20 Mul = P.Mul() variable
50 mul0 = Mul(select1, input2)
51 mul1 = Mul(mul0, input3)
Dmomentum_lossscale_fusion_test.py23 Mul = P.Mul() variable
47 mul = Mul(constant, input3)
/third_party/mindspore/mindspore/core/ops/
Dmul.h31 class MS_CORE_API Mul : public PrimitiveC {
34 Mul() : PrimitiveC(kNameMul) { InitIOName({"x", "y"}, {"output"}); } in Mul() function
35 …explicit Mul(const std::string k_name) : PrimitiveC(k_name) { InitIOName({"x", "y"}, {"output"}); } in Mul() function
37 ~Mul() = default;
38 MS_DECLARE_PARENT(Mul, PrimitiveC);
44 using PrimMulPtr = std::shared_ptr<Mul>;
/third_party/skia/src/core/
DSkMalloc.cpp9 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw()
13 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw()
17 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw()
21 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
/third_party/mindspore/tests/ut/python/parallel/
Dtest_reduce_method_info.py87 self.mul1 = P.Mul().shard(strategy1)
89 self.mul2 = P.Mul().shard(strategy3)
114 self.mul1 = P.Mul().shard(strategy1)
116 self.mul2 = P.Mul().shard(strategy3)
141 self.mul1 = P.Mul().shard(strategy1)
143 self.mul2 = P.Mul().shard(strategy3)
168 self.mul1 = P.Mul().shard(strategy1)
170 self.mul2 = P.Mul().shard(strategy3)
195 self.mul1 = P.Mul().shard(strategy1)
218 self.mul1 = P.Mul().shard(strategy1)
[all …]
Dtest_auto_parallel_reduce_method.py61 self.mul1 = P.Mul()
63 self.mul2 = P.Mul()
85 self.mul1 = P.Mul()
87 self.mul2 = P.Mul()
109 self.mul1 = P.Mul()
111 self.mul2 = P.Mul()
Dtest_tile.py27 self.mul = P.Mul().shard(strategy1)
33 self.mul2 = P.Mul()
46 self.mul = P.Mul().shard(strategy1)
58 self.mul = P.Mul().shard(strategy1)
64 self.mul2 = P.Mul()
Dtest_parameter_multi_users.py27 self.mul = P.Mul().shard(strategy1)
28 self.mul2 = P.Mul().shard(strategy2)
40 self.mul = P.Mul().shard(strategy1)
41 self.mul2 = P.Mul().shard(strategy2)
Dtest_auto_parallel_star_partial_strategy.py50 self.mul1 = P.Mul()
51 self.mul2 = P.Mul()
52 self.mul3 = P.Mul()
53 self.mul4 = P.Mul()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMParallelDSP.cpp105 if (I->getOpcode() == Instruction::Mul) in InsertMuls()
108 if (I->getOpcode() == Instruction::Mul) in InsertMuls()
123 if (auto *Mul = GetMulOperand(Add->getOperand(0))) in InsertMuls() local
124 InsertMul(Mul); in InsertMuls()
125 if (auto *Mul = GetMulOperand(Add->getOperand(1))) in InsertMuls() local
126 InsertMul(Mul); in InsertMuls()
188 for (auto &Mul : Muls) in dump()
189 LLVM_DEBUG(dbgs() << *Mul->Root << "\n" in dump()
190 << " " << *Mul->LHS << "\n" in dump()
191 << " " << *Mul->RHS << "\n"); in dump()
[all …]
/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_insert_grad_of.py97 class Mul(nn.Cell): class
99 super(Mul, self).__init__()
109 bprop(Mul(), Tensor(np.ones([2, 2]).astype(np.float32)),
127 class Mul(nn.Cell): class
129 super(Mul, self).__init__()
146 GradNetWrap(Mul())(input_x, input_y)
Dtest_stop_gradient.py187 class Mul(nn.Cell): class
189 super(Mul, self).__init__()
197 dx, dy = bprop(Mul(), Tensor(np.ones([2, 2]).astype(np.float32)),
205 class Mul(nn.Cell): class
207 super(Mul, self).__init__()
218 self.mul = Mul()
348 class Mul(nn.Cell): class
350 super(Mul, self).__init__()
361 self.mul = Mul()
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/optimizer/
Dopt_test.py1063 Mul = Primitive('Mul')
1072 return Mul(tensor1, Mul(tensor2, Sqrt(x)))
1076 return Mul(tensor1, Mul(Sqrt(x), tensor2))
1080 return Mul(Mul(Sqrt(x), tensor2), tensor1)
1084 return Mul(Mul(Sqrt(x), tensor2), tensor1)
1088 return Mul(Sqrt(x), Mul(tensor1, tensor2))
1095 Mul = Primitive('Mul')
1105 return AddN((z, Mul(y, AllReduce(x))))
1109 return AddN((z, Mul(AllReduce(x), y)))
1113 return AddN((Mul(y, AllReduce(x)), z))
[all …]
/third_party/mindspore/mindspore/core/ops/fusion/
Dmul_fusion.h27 class MS_CORE_API MulFusion : public Mul {
30 MulFusion() : Mul(kNameMulFusion) { InitIOName({"x", "y"}, {"output"}); } in MulFusion()
35 MS_DECLARE_PARENT(MulFusion, Mul);
/third_party/flutter/skia/src/core/
DSkMallocPixelRef.cpp16 return sk_calloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_calloc_throw()
20 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw()
24 return sk_realloc_throw(buffer, SkSafeMath::Mul(count, elemSize)); in sk_realloc_throw()
28 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
/third_party/mindspore/mindspore/parallel/nn/
Dmoe.py122 self.mul = P.Mul().shard(((), ()))
274 self.mul = P.Mul().shard(((dp, 1, 1), (dp,)))
342 self.mul = P.Mul().shard(((dp, 1), (dp, 1)))
343 self.mul2 = P.Mul().shard(((1,), ()))
344 self.mul3 = P.Mul().shard(((1,), ()))
345 self.mul4 = P.Mul().shard(((dp, 1, 1), (dp, 1, 1)))
346 self.mul5 = P.Mul().shard(((dp, 1, 1), (dp, 1, 1)))
347 self.mul6 = P.Mul().shard(((dp, 1), (dp, 1)))
348 self.mul7 = P.Mul().shard(((dp, 1), (dp, 1)))
349 self.mul8 = P.Mul().shard(((dp, 1, 1), (dp, 1, 1)))
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/math/
Dbroadcast_gpu_kernel.cc40Mul, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddInputAttr(kNumberTypeFloat64).AddOutputAttr(…
106Mul, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddInputAttr(kNumberTypeFloat32).AddOutputAttr(…
188Mul, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddInputAttr(kNumberTypeFloat16).AddOutputAttr(…
263Mul, KernelAttr().AddInputAttr(kNumberTypeInt32).AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNum…
328Mul, KernelAttr().AddInputAttr(kNumberTypeInt64).AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNum…
376Mul, KernelAttr().AddInputAttr(kNumberTypeInt8).AddInputAttr(kNumberTypeInt8).AddOutputAttr(kNumbe…
390Mul, KernelAttr().AddInputAttr(kNumberTypeUInt32).AddInputAttr(kNumberTypeUInt32).AddOutputAttr(kN…
411Mul, KernelAttr().AddInputAttr(kNumberTypeUInt8).AddInputAttr(kNumberTypeUInt8).AddOutputAttr(kNum…
437Mul, KernelAttr().AddInputAttr(kNumberTypeInt16).AddInputAttr(kNumberTypeInt16).AddOutputAttr(kNum…
442Mul, KernelAttr().AddInputAttr(kNumberTypeUInt16).AddInputAttr(kNumberTypeUInt16).AddOutputAttr(kN…
[all …]
/third_party/mindspore/mindspore/nn/optim/
Dadafactor.py59 return P.Mul()(r_factor, c_factor)
114 exp_avg_sq_row_update = P.Mul()(exp_avg_sq_row_update, beta2t)
119 exp_avg_sq_col_update = P.Mul()(exp_avg_sq_col_update, beta2t)
125 update = P.Mul()(update, grad)
128 exp_avg_sq_update = P.Add()(P.Mul()(exp_avg_sq_update, beta2t), update)
131 update = P.Mul()(exp_avg_sq_update, grad)
135 update = P.Mul()(P.Div()(update, update_coff), learning_rate_update)
140 exp_avg_update = P.Add()(P.Mul()(exp_avg_update, beta1), update * (1 - beta1))
/third_party/mindspore/tests/mindspore_test_framework/apps/
Dtest_no_facade.py37 def Mul(x, y): function
61 'block': Mul

12345678910>>...19