By default it’s going to be set to training unless you’ve somewhere set it to evaluation mode. In your case I would do something like this:
model.eval()
with torch.no_grad():
    for val_image, val_label in val_loader:
        # compute stuff here
model.train()