MKLDNN conv + elementwise_add fusion: bias in tests made persistent.

test=develop
ce
Tomasz Patejko 6 years ago
parent a1fa203287
commit b73b868366

@ -204,7 +204,7 @@ TEST(ConvElementwiseAddMKLDNNFusePass, SigmoidConvolutionAddElementwiseRelu) {
{"a", "b", "bias", "weights", "c", "d", "e", "f"})) {
auto* var = prog.MutableBlock(0)->Var(v);
var->SetType(proto::VarType::LOD_TENSOR);
if (v.find("weights")) {
if (v.find("weights") || v.find("bias")) {
var->SetPersistable(true);
}
}

Loading…
Cancel
Save