/third_party/mindspore/tests/ut/cpp/kernel/cpu/ |
D | sparse_apply_ftrl_cpu_kernel_test.cc | 36 var_.clear(); in SetUp() 52 inputs_.push_back(CreateKernelAddress(var_.data())); in CreateInputAddress() 67 std::vector<float> var_; member in mindspore::kernel::SparseApplyFtrlCpuKernelTest 79 var_.push_back(1.0); in TEST_F() 98 EXPECT_TRUE(std::fabs(var_[i] - 0.291479) < 1e-6); in TEST_F() 104 var_.push_back(1.0); in TEST_F() 125 EXPECT_TRUE(std::fabs(var_[i] - 0.291479) < 1e-6); in TEST_F() 128 EXPECT_EQ(var_[i], 1.0); in TEST_F() 131 EXPECT_TRUE(std::fabs(var_[i] - 0.291479) < 1e-6); in TEST_F() 137 var_.push_back(1.0); in TEST_F() [all …]
|
D | sparse_apply_proximal_adagrad_cpu_kernel_test.cc | 33 var_.clear(); in SetUp() 48 inputs_.push_back(CreateKernelAddress(var_.data())); in CreateInputAddress() 65 std::vector<float> var_; member in mindspore::kernel::SparseApplyProximalAdagradCpuKernelTest 79 var_.push_back(1.0); in TEST_F() 97 EXPECT_TRUE(std::fabs(var_[i] - 0.9929289) < 1e-6); in TEST_F() 103 var_.push_back(1.0); in TEST_F() 123 EXPECT_TRUE(std::fabs(var_[i] - 0.9929289) < 1e-6); in TEST_F() 126 EXPECT_EQ(var_[i], 1.0); in TEST_F() 129 EXPECT_TRUE(std::fabs(var_[i] - 0.9929289) < 1e-6); in TEST_F() 135 var_.push_back(1.0); in TEST_F() [all …]
|
D | sparse_apply_lazy_adam_cpu_kernel_test.cc | 32 var_.clear(); in SetUp() 48 inputs_.push_back(CreateKernelAddress(var_.data())); in CreateInputAddress() 69 std::vector<float> var_; member in mindspore::kernel::SparseApplyLazyAdamCpuKernelTest 87 var_.push_back(1.0); in TEST_F() 106 EXPECT_TRUE(std::fabs(var_[i] - 0.999684) < 1e-6); in TEST_F() 112 var_.push_back(1.0); in TEST_F() 133 EXPECT_TRUE(std::fabs(var_[i] - 0.999684) < 1e-6); in TEST_F() 136 EXPECT_EQ(var_[i], 1.0); in TEST_F() 139 EXPECT_TRUE(std::fabs(var_[i] - 0.999684) < 1e-6); in TEST_F() 145 var_.push_back(1.0); in TEST_F() [all …]
|
D | sparse_apply_adam_cpu_kernel_test.cc | 32 var_.clear(); in SetUp() 48 inputs_.push_back(CreateKernelAddress(var_.data())); in CreateInputAddress() 71 std::vector<float> var_; member in mindspore::kernel::SparseApplyAdamCpuKernelTest 89 var_.push_back(1.0); in TEST_F() 109 EXPECT_TRUE(std::fabs(var_[i] - 0.999684) < 1e-6); in TEST_F() 115 var_.push_back(1.0); in TEST_F() 137 EXPECT_TRUE(std::fabs(var_[i] - 0.999684) < 1e-6); in TEST_F() 140 EXPECT_TRUE(std::fabs(var_[i] - 0.999715) < 1e-6); in TEST_F() 143 EXPECT_TRUE(std::fabs(var_[i] - 0.999684) < 1e-6); in TEST_F() 149 var_.push_back(1.0); in TEST_F() [all …]
|
/third_party/boost/libs/test/doc/examples/ |
D | exception_uncaught.run-fail.cpp | 13 my_struct(int var_) : var(var_) in my_struct() 15 if(var_ < 0) throw std::runtime_error("negative value not allowed"); in my_struct()
|
/third_party/boost/libs/spirit/classic/example/fundamental/more_calculators/ |
D | calc_with_variables.cpp | 108 set_var(double*& var_) in set_var() 109 : var(var_) {} in set_var() 129 do_assign(double*& var_, stack<double>& eval_) in do_assign() 130 : var(var_), eval(eval_) {} in do_assign()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/ |
D | replace_momentum_cast_fusion.h | 27 var_ = std::make_shared<Var>(); 38 VarPtr var_;
|
D | batch_norm_relu_fusion.h | 31 var_ = std::make_shared<Var>(); 43 VarPtr var_; variable
|
D | post_batch_norm_add_relu_fusion.h | 32 var_ = std::make_shared<Var>(); 45 VarPtr var_; variable
|
D | batch_norm_add_relu_fusion.h | 32 var_ = std::make_shared<Var>(); 45 VarPtr var_; variable
|
D | batch_norm_add_relu_grad_fusion.h | 34 var_ = std::make_shared<Var>(); 50 VarPtr var_; variable
|
D | replace_momentum_cast_fusion.cc | 26 VectorRef momentum = VectorRef({prim::kPrimApplyMomentum, var_, acc_, lr_, grad_cast, mom_}); in DefinePattern()
|
D | batch_norm_relu_fusion.cc | 31 VectorRef batch_norm = VectorRef({prim::kPrimBatchNorm, x_, scale_, bias_, mean_, var_}); in DefinePattern()
|
D | batch_norm_add_relu_fusion.cc | 31 VectorRef batch_norm = VectorRef({prim::kPrimBatchNorm, x_, scale_, bias_, mean_, var_}); in DefinePattern()
|
/third_party/boost/boost/spirit/home/classic/phoenix/ |
D | primitives.hpp | 210 variable(T& var_) in variable() 211 : var(var_) {} in variable()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/ |
D | layer_norm.cc | 219 var_ = allocator->Malloc(mean_size, lite::opencl::MemType::BUF); in Prepare() 220 if (var_ == nullptr) { in Prepare() 261 if (ocl_runtime_->SetKernelArg(kernel_mean_var_, arg1_cn++, var_, true) != CL_SUCCESS) { in Run() 280 if (ocl_runtime_->SetKernelArg(kernel_, arg_cn++, var_, true) != CL_SUCCESS) { in Run()
|
D | layer_norm.h | 47 void *var_{nullptr};
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/ |
D | visit.cc | 54 MS_LOG(DEBUG) << "IsVarNode " + node->cast<VarNodePtr>()->var_->ToString(); in GetVar() 55 return node->cast<VarNodePtr>()->var_; in GetVar()
|
D | pattern_engine.h | 94 VarNode(const VarPtr &value, const FuncGraphPtr &func_graph) : AnfNode(func_graph), var_(value) {} in VarNode() 98 const VarPtr var_; variable
|
D | pattern_engine.cc | 108 MS_LOG(DEBUG) << "IsVarNode " + node->cast<VarNodePtr>()->var_->ToString(); in GetVar() 109 return node->cast<VarNodePtr>()->var_; in GetVar()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | sparse_apply_proximal_adagrad_cpu_kernel.cc | 30 auto var = input_params->var_; in ComputeProximalAdagrad() 153 input_params.var_ = var; in LaunchKernel()
|
D | sparse_apply_lazy_adam_cpu_kernel.cc | 30 auto var = input_params->var_; in ComputeLazyAdam() 157 input_params.var_ = var; in LaunchKernel()
|
D | sparse_apply_ftrl_cpu_kernel.cc | 30 auto var = input_params->var_; in ComputeFtrl() 164 input_params.var_ = var; in LaunchKernel()
|
D | sparse_apply_adam_cpu_kernel.cc | 73 auto var = input_params->var_; in ComputeWeight() 195 input_params.var_ = var; in LaunchKernel()
|
/third_party/boost/libs/callable_traits/test/ |
D | qualifier_metafunction_constraints.hpp | 48 auto PP_CAT(var_, CALLABLE_TRAIT_UNDER_TEST) = PP_CAT(test_, CALLABLE_TRAIT_UNDER_TEST)();
|