本文整理汇总了C++中Net::GetWeights方法的典型用法代码示例。如果您正苦于以下问题:C++ Net::GetWeights方法的具体用法?C++ Net::GetWeights怎么用?C++ Net::GetWeights使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Net
的用法示例。
在下文中一共展示了Net::GetWeights方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mexFunction
void mexFunction(int nLhs, mxArray* pLhs[], int nRhs, const mxArray* pRhs[]) {
mexAssert(nRhs == NARGIN, "Number of input arguments in wrong!");
mexAssert(nLhs == NARGOUT, "Number of output arguments is wrong!" );
Net net;
net.InitLayers(IN_L);
net.InitParams(IN_P);
net.InitWeights(NULL);
net.GetWeights(OUT_W);
}
示例2: mexFunction
void mexFunction(int nLhs, mxArray* pLhs[], int nRhs, const mxArray* pRhs[]) {
mexAssert(nRhs == NARGIN, "Number of input arguments in wrong!");
mexAssert(nLhs == NARGOUT, "Number of output arguments is wrong!" );
size_t seed = (size_t) mexGetScalar(IN_S);
Net net;
net.InitRand(seed);
net.InitLayers(IN_L);
net.InitWeights(NULL);
net.GetWeights(OUT_W);
}