Lines Matching refs:bias
136 const EmbeddingNetworkParams::Matrix &bias) { in GoodLayerGeometry() argument
141 if ((bias.rows != 1) && (bias.cols != 1)) { in GoodLayerGeometry()
142 SAFTM_LOG(ERROR) << "bad bias vector geometry: " << bias.rows << " x " in GoodLayerGeometry()
143 << bias.cols; in GoodLayerGeometry()
146 int bias_dimension = bias.rows * bias.cols; in GoodLayerGeometry()
225 Matrix bias = GetHiddenLayerBias(i); in ValidityChecking() local
226 if (!VerifyMatrix(bias, bytes)) { in ValidityChecking()
230 if (!GoodLayerGeometry(current_size, weights, bias)) { in ValidityChecking()
243 Matrix bias = GetSoftmaxBias(); in ValidityChecking() local
244 if (!VerifyMatrix(bias, bytes)) { in ValidityChecking()
248 if (!GoodLayerGeometry(current_size, weights, bias)) { in ValidityChecking()
350 const saft_fbs::Matrix *bias = layer->bias(); in SafeGetLayerBias() local
351 if (bias == nullptr) { in SafeGetLayerBias()
354 return bias; in SafeGetLayerBias()