Make sure configs are fully initialized in tests to fix msan warnings.
PiperOrigin-RevId: 266135900
This commit is contained in:
parent
2820be1ef0
commit
5cbd7384d8
@ -60,6 +60,7 @@ static std::vector<DepthwiseConvolution2DSpec> GetConv2DTestCases() {
|
||||
config.output_layout = {3, 0, 2, 1};
|
||||
|
||||
if (activation_size == 1 && kernel_size == 2) {
|
||||
config.stride = config.pad = config.lhs_dilate = -1;
|
||||
// Test for outer dim.
|
||||
config.output_dims = {batch, activation_size + kernel_size - 1,
|
||||
activation_size + kernel_size, feature};
|
||||
|
@ -81,6 +81,7 @@ static std::vector<GroupedConvolution2DSpec> GetConv2DTestCases() {
|
||||
config.kernel_layout = {3, 2, 1, 0};
|
||||
|
||||
if (activation_size == 1 && kernel_size == 2) {
|
||||
config.stride = config.pad = config.lhs_dilate = -1;
|
||||
// Test for outer dim.
|
||||
config.output_dims = {batch, activation_size + kernel_size - 1,
|
||||
activation_size + kernel_size, output_feature};
|
||||
|
Loading…
x
Reference in New Issue
Block a user