Skip to content
Open
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
7 changes: 4 additions & 3 deletions backends/arm/test/models/test_resnet18.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
model = model.eval()
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])

model_inputs = (normalize(torch.randn((1, 3, 224, 224))),)
# Using torch.rand * 2 - 1 to generate numbers in the range [-1;1] like an RGB image
model_inputs = (normalize(torch.rand((1, 3, 224, 224)) * 2 - 1),)

input_t = Tuple[torch.Tensor]

Expand Down Expand Up @@ -71,7 +72,7 @@ def test_resnet_u55_INT(per_channel_quantization):
exir_ops=[],
use_to_edge_transform_and_lower=True,
per_channel_quantization=per_channel_quantization,
atol=0.5,
atol=0.25,
qtol=1,
)
pipeline.run()
Expand All @@ -91,7 +92,7 @@ def test_resnet_u85_INT(per_channel_quantization):
exir_ops=[],
use_to_edge_transform_and_lower=True,
per_channel_quantization=per_channel_quantization,
atol=0.5,
atol=0.25,
qtol=1,
)
pipeline.run()
Loading