Searched refs:ret_vec (Results 1 – 12 of 12) sorted by relevance
/third_party/boost/libs/yap/example/autodiff_library/ |
D | BinaryOPNode.cpp | 460 void BinaryOPNode::hess_forward(unsigned int len, double** ret_vec) in hess_forward() argument 471 *ret_vec = new double[len]; in hess_forward() 472 hess_forward_calc0(len,lvec,rvec,*ret_vec); in hess_forward() 478 …id BinaryOPNode::hess_forward_calc0(unsigned int& len, double* lvec, double* rvec, double* ret_vec) in hess_forward_calc0() argument 494 ret_vec[i] = lvec[i]+rvec[i]; in hess_forward_calc0() 501 ret_vec[index] = lvec[index] + 0 + rvec[index] + 0; in hess_forward_calc0() 515 ret_vec[i] = lvec[i] - rvec[i]; in hess_forward_calc0() 522 ret_vec[index] = lvec[index] + 0 - rvec[index] + 0; in hess_forward_calc0() 538 ret_vec[i] = hu*lvec[i] + hv*rvec[i]; in hess_forward_calc0() 546 ret_vec[index] = hu * lvec[index] + lvec[i] * rvec[j]+hv * rvec[index] + rvec[i] * lvec[j]; in hess_forward_calc0() [all …]
|
D | VNode.cpp | 69 void VNode::hess_forward(unsigned int len, double** ret_vec) in hess_forward() argument 72 (*ret_vec) = new double[len]; in hess_forward() 73 std::fill_n(*ret_vec,len,0); in hess_forward() 74 (*ret_vec)[id]=1; in hess_forward()
|
D | PNode.cpp | 132 void PNode::hess_forward(unsigned int len, double** ret_vec) in hess_forward() argument 135 (*ret_vec) = new double[len]; in hess_forward() 136 std::fill_n(*ret_vec,len,0); in hess_forward()
|
D | UaryOPNode.cpp | 314 void UaryOPNode::hess_forward(unsigned int len, double** ret_vec) in hess_forward() argument 321 *ret_vec = new double[len]; in hess_forward() 322 this->hess_forward_calc0(len,lvec,*ret_vec); in hess_forward() 326 void UaryOPNode::hess_forward_calc0(unsigned int& len, double* lvec, double* ret_vec) in hess_forward_calc0() argument 346 ret_vec[i] = hu*lvec[i] + 0; in hess_forward_calc0() 354 ret_vec[index] = hu*lvec[index] + lvec[i] * coeff * lvec[j] + 0 + 0; in hess_forward_calc0()
|
D | UaryOPNode.h | 27 void hess_forward(unsigned int len, double** ret_vec); 48 void hess_forward_calc0(unsigned int& len, double* lvec,double* ret_vec);
|
D | BinaryOPNode.h | 29 void hess_forward(unsigned int len, double** ret_vec); 53 void hess_forward_calc0(unsigned int& len, double* lvec, double* rvec,double* ret_vec);
|
D | PNode.h | 25 void hess_forward(unsigned int len,double** ret_vec);
|
D | VNode.h | 38 void hess_forward(unsigned int nvar, double** ret_vec);
|
D | Node.h | 44 virtual void hess_forward(unsigned int len, double** ret_vec) = 0;
|
/third_party/mindspore/mindspore/ccsrc/utils/ |
D | convert_utils_py.cc | 409 auto ret_vec = shape_obj.cast<ShapeVector>(); in MakePyInferRes2AbstractTensor() local 427 auto ret_shape = std::make_shared<abstract::Shape>(ret_vec, min_shape_vec, max_shape_vec); in MakePyInferRes2AbstractTensor() 456 auto ret_vec = shape_obj.cast<ShapeVector>(); in MakePyInferRes2Abstract() local 460 if (ret_vec.empty() && (!ret_dtype->isa<TensorType>())) { in MakePyInferRes2Abstract()
|
/third_party/mindspore/mindspore/core/abstract/ |
D | utils.cc | 348 auto ret_vec = shape->shape(); in MakeAbstractTensor() local 359 auto ret_shape = std::make_shared<abstract::Shape>(ret_vec, min_shape_vec, max_shape_vec); in MakeAbstractTensor()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_arit.c | 666 LLVMValueRef ret_vec; in lp_build_hadd_partial4() local 710 ret_vec = lp_build_horizontal_add4x4f(bld, tmp); in lp_build_hadd_partial4() 726 ret_vec = lp_build_concat(gallivm, partres, parttype, num_iter); in lp_build_hadd_partial4() 728 return ret_vec; in lp_build_hadd_partial4()
|