A ghost shrimp full grown would be an awfully big meal for a dwarf frog, so they'd likely leave it be.
They don't see well but they do have a keen sense of smell and use the lateral lines on their sides like fish do, to sense vibrations. They're very sensitive to vibrations, which is how they catch little fish. No small fish is safe from one of these guys but the shrimp would likely be ok. I'd worry more about cherry shrimp, especially baby ones, they're more the size these frogs go for.
The one exception might be after the shrimp moults, as until the shell hardens they are very soft and easy prey. So it's one of those 'at your own risk' sorts of decisions.