thrownewError("expected weightMap["+prefix+"/Conv2d_"+idx+"_pointwise/convolution_bn_offset] to be a Tensor1D, instead have "+pointwise_conv_params.batch_norm_offset);
}
returnpointwise_conv_params;
...
...
@@ -24,19 +26,19 @@ function extractorsFactory(weightMap) {
thrownewError("expected weightMap[MobilenetV1/Conv2d_"+idx+"_depthwise/depthwise_weights] to be a Tensor4D, instead have "+depthwise_conv_params.filters);
thrownewError("expected weightMap[MobilenetV1/Conv2d_"+idx+"_depthwise/BatchNorm/gamma] to be a Tensor1D, instead have "+depthwise_conv_params.batch_norm_scale);
thrownewError("expected weightMap[MobilenetV1/Conv2d_"+idx+"_depthwise/BatchNorm/beta] to be a Tensor1D, instead have "+depthwise_conv_params.batch_norm_offset);
thrownewError("expected weightMap[MobilenetV1/Conv2d_"+idx+"_depthwise/BatchNorm/moving_mean] to be a Tensor1D, instead have "+depthwise_conv_params.batch_norm_mean);
thrownewError("expected weightMap[MobilenetV1/Conv2d_"+idx+"_depthwise/BatchNorm/moving_variance] to be a Tensor1D, instead have "+depthwise_conv_params.batch_norm_variance);
}
return{
...
...
@@ -61,16 +63,16 @@ function extractorsFactory(weightMap) {
thrownewError("expected weightMap[Prediction/BoxPredictor_"+idx+"/BoxEncodingPredictor/weights] to be a Tensor4D, instead have "+params.box_encoding_predictor_params.filters);
thrownewError("expected weightMap[Prediction/BoxPredictor_"+idx+"/BoxEncodingPredictor/biases] to be a Tensor1D, instead have "+params.box_encoding_predictor_params.bias);
thrownewError("expected weightMap[Prediction/BoxPredictor_"+idx+"/ClassPredictor/weights] to be a Tensor4D, instead have "+params.class_predictor_params.filters);
thrownewError("expected weightMap[Prediction/BoxPredictor_"+idx+"/ClassPredictor/biases] to be a Tensor1D, instead have "+params.class_predictor_params.bias);
}
returnparams;
...
...
@@ -98,17 +100,17 @@ function extractorsFactory(weightMap) {