mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix unused Python variables in test/[e-z]* (#136964)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136964 Approved by: https://github.com/justinchuby, https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
d298bd840f
commit
d8c8ba2440
@ -23,7 +23,7 @@ class TestVulkanRewritePass(TestCase):
|
||||
scripted_model = torch.jit.script(module_instance)
|
||||
scripted_model.eval()
|
||||
input_data = torch.normal(1, 20, size=data_shape)
|
||||
ref_result = scripted_model(input_data)
|
||||
scripted_model(input_data)
|
||||
torch._C._jit_pass_vulkan_insert_prepacked_ops(scripted_model._c)
|
||||
if fuse_clamping_ops or prepack_removal:
|
||||
scripted_model._c = torch._C._freeze_module(scripted_model._c)
|
||||
@ -58,7 +58,6 @@ class TestVulkanRewritePass(TestCase):
|
||||
dilation = 1
|
||||
input_channels = input_channels_per_group * groups
|
||||
output_channels = output_channels_per_group * groups
|
||||
kernels = (kernel_h, kernel_w)
|
||||
strides = (stride_h, stride_w)
|
||||
paddings = (pad_h, pad_w)
|
||||
dilations = (dilation, dilation)
|
||||
|
Reference in New Issue
Block a user