Skip to content
Discussion options

You must be logged in to vote

After writing this I realized that I can use something like this:

model = model.eval()
i, _ = next(iter(data.test_dataloader()))
with th.no_grad():
    outputs = model.forward(model.transfer_batch_to_device(i))

But I'm still curious about the intended future ways of doing this....

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@carmocca
Comment options

@immanuelweber
Comment options

Answer selected by carmocca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment