Home
last modified time | relevance | path

Searched refs:var_ (Results 1 – 25 of 28) sorted by relevance

12

/third_party/mindspore/tests/ut/cpp/kernel/cpu/
Dsparse_apply_ftrl_cpu_kernel_test.cc36 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 …]
Dsparse_apply_proximal_adagrad_cpu_kernel_test.cc33 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 …]
Dsparse_apply_lazy_adam_cpu_kernel_test.cc32 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 …]
Dsparse_apply_adam_cpu_kernel_test.cc32 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/
Dexception_uncaught.run-fail.cpp13 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/
Dcalc_with_variables.cpp108 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/
Dreplace_momentum_cast_fusion.h27 var_ = std::make_shared<Var>();
38 VarPtr var_;
Dbatch_norm_relu_fusion.h31 var_ = std::make_shared<Var>();
43 VarPtr var_; variable
Dpost_batch_norm_add_relu_fusion.h32 var_ = std::make_shared<Var>();
45 VarPtr var_; variable
Dbatch_norm_add_relu_fusion.h32 var_ = std::make_shared<Var>();
45 VarPtr var_; variable
Dbatch_norm_add_relu_grad_fusion.h34 var_ = std::make_shared<Var>();
50 VarPtr var_; variable
Dreplace_momentum_cast_fusion.cc26 VectorRef momentum = VectorRef({prim::kPrimApplyMomentum, var_, acc_, lr_, grad_cast, mom_}); in DefinePattern()
Dbatch_norm_relu_fusion.cc31 VectorRef batch_norm = VectorRef({prim::kPrimBatchNorm, x_, scale_, bias_, mean_, var_}); in DefinePattern()
Dbatch_norm_add_relu_fusion.cc31 VectorRef batch_norm = VectorRef({prim::kPrimBatchNorm, x_, scale_, bias_, mean_, var_}); in DefinePattern()
/third_party/boost/boost/spirit/home/classic/phoenix/
Dprimitives.hpp210 variable(T& var_) in variable()
211 : var(var_) {} in variable()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dlayer_norm.cc219 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()
Dlayer_norm.h47 void *var_{nullptr};
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Dvisit.cc54 MS_LOG(DEBUG) << "IsVarNode " + node->cast<VarNodePtr>()->var_->ToString(); in GetVar()
55 return node->cast<VarNodePtr>()->var_; in GetVar()
Dpattern_engine.h94 VarNode(const VarPtr &value, const FuncGraphPtr &func_graph) : AnfNode(func_graph), var_(value) {} in VarNode()
98 const VarPtr var_; variable
Dpattern_engine.cc108 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/
Dsparse_apply_proximal_adagrad_cpu_kernel.cc30 auto var = input_params->var_; in ComputeProximalAdagrad()
153 input_params.var_ = var; in LaunchKernel()
Dsparse_apply_lazy_adam_cpu_kernel.cc30 auto var = input_params->var_; in ComputeLazyAdam()
157 input_params.var_ = var; in LaunchKernel()
Dsparse_apply_ftrl_cpu_kernel.cc30 auto var = input_params->var_; in ComputeFtrl()
164 input_params.var_ = var; in LaunchKernel()
Dsparse_apply_adam_cpu_kernel.cc73 auto var = input_params->var_; in ComputeWeight()
195 input_params.var_ = var; in LaunchKernel()
/third_party/boost/libs/callable_traits/test/
Dqualifier_metafunction_constraints.hpp48 auto PP_CAT(var_, CALLABLE_TRAIT_UNDER_TEST) = PP_CAT(test_, CALLABLE_TRAIT_UNDER_TEST)();

12