Fix layout_optimizer_test on Windows.
The issue was an initializer_list was used after it went out of scope. PiperOrigin-RevId: 310177457 Change-Id: Iaa6dbb17bd29caaf7f1e4d668b4c8d29a2e2997d
This commit is contained in:
parent
638ba01886
commit
9d2d1f82c5
@ -84,8 +84,9 @@ class LayoutOptimizerTest : public GrapplerTest {
|
||||
ops::Const(s->WithOpName("Filter"), Input::Initializer(filter_data));
|
||||
|
||||
ops::Conv2D::Attrs attrs;
|
||||
const int kExplicitPaddings[] = {0, 0, 1, 2, 3, 4, 0, 0};
|
||||
if (padding == "EXPLICIT") {
|
||||
attrs = attrs.ExplicitPaddings({0, 0, 1, 2, 3, 4, 0, 0});
|
||||
attrs = attrs.ExplicitPaddings(kExplicitPaddings);
|
||||
}
|
||||
|
||||
Output conv = ops::Conv2D(s->WithOpName("Conv2D").WithDevice(device), input,
|
||||
|
Loading…
Reference in New Issue
Block a user