Home | History | Annotate | Download | only in flatbuffers

Lines Matching defs:bias

131 // Checks the geometry of the network layer represented by |weights| and |bias|,
136 const EmbeddingNetworkParams::Matrix &bias) {
141 if ((bias.rows != 1) && (bias.cols != 1)) {
142 SAFTM_LOG(ERROR) << "bad bias vector geometry: " << bias.rows << " x "
143 << bias.cols;
146 int bias_dimension = bias.rows * bias.cols;
225 Matrix bias = GetHiddenLayerBias(i);
226 if (!VerifyMatrix(bias, bytes)) {
227 SAFTM_LOG(ERROR) << "Bad bias vector for hidden layer #" << i;
230 if (!GoodLayerGeometry(current_size, weights, bias)) {
243 Matrix bias = GetSoftmaxBias();
244 if (!VerifyMatrix(bias, bytes)) {
245 SAFTM_LOG(ERROR) << "Bad bias vector for softmax";
248 if (!GoodLayerGeometry(current_size, weights, bias)) {
350 const saft_fbs::Matrix *bias = layer->bias();
351 if (bias == nullptr) {
352 SAFTM_LOG(ERROR) << "nullptr bias for layer #" << i;
354 return bias;