File size: 316 Bytes
7c1e6a1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import torch
# Load TorchScript model
model = torch.jit.load("model_logits_traced.pt")
model.eval()
# Dummy input (B, C, H, W)
x = torch.randn(1, 32, 512, 512)
with torch.no_grad():
y = model(x)
print("Inference successful!")
print("Output shape:", y.shape)
print("Min/Max:", y.min().item(), y.max().item())
|