Skip to content

[ET-VK] Manually sync internal and OSS #7364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions backends/vulkan/test/test_vulkan_delegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,35 @@ def forward(self, x):
(torch.tensor([[[0, 1], [0, 1]], [[4, 2], [3, 3]]]),),
)

# def test_vulkan_backend_conv_with_dim_order(self):
# class Conv2dSequential(torch.nn.Module):
# def __init__(self, bias=True, channel_last=False):
# super().__init__()
# self.first = torch.nn.Conv2d(
# in_channels=1,
# out_channels=3,
# kernel_size=(3, 3),
# padding=1,
# bias=bias,
# )
# self.second = torch.nn.Conv2d(
# in_channels=3,
# out_channels=2,
# kernel_size=(3, 3),
# padding=1,
# bias=bias,
# )

# def forward(self, x):
# x = x.to(memory_format=torch.channels_last)
# return self.second(self.first(x))

# self.lower_module_and_test_output(
# Conv2dSequential(),
# (torch.rand(size=[1, 1, 3, 3]),),
#
# )

def test_vulkan_backend_flip(self):
class FlipModule(torch.nn.Module):
def __init__(self):
Expand Down Expand Up @@ -1654,32 +1683,3 @@ def forward(self, x):
GridPriorsModule(),
(torch.rand(size=[1, 5, 2, 3]),),
)

# def test_vulkan_backend_conv_with_dim_order(self):
# class Conv2dSequential(torch.nn.Module):
# def __init__(self, bias=True, channel_last=False):
# super().__init__()
# self.first = torch.nn.Conv2d(
# in_channels=1,
# out_channels=3,
# kernel_size=(3, 3),
# padding=1,
# bias=bias,
# )
# self.second = torch.nn.Conv2d(
# in_channels=3,
# out_channels=2,
# kernel_size=(3, 3),
# padding=1,
# bias=bias,
# )

# def forward(self, x):
# x = x.to(memory_format=torch.channels_last)
# return self.second(self.first(x))

# self.lower_module_and_test_output(
# Conv2dSequential(),
# (torch.rand(size=[1, 1, 3, 3]),),
#
# )
Loading